cancel
Showing results for 
Search instead for 
Did you mean: 

Read data from assignment block

Former Member
0 Kudos

Hi all,

I'm a bit puzzled for the moment with a development I've done.

In short, I've created 2 views, 1 with a value node context node and 1 with a model node context node type BuilContactPerson.

These 2 views are put on an overview page. On the overview page I have a button 'Save'. In the eh_onsave event I need to read the content of the assignment block from the model node. Anyone an idea how to get this done?

Some background info on what I am doing.

In the BP_CONT_SEARCH component I've enhanced the SearchResult view and put a button "Move" on top of the assignment block. I also made the SearchResult table multi select.

The purpose of this is that you can select multiple contacts, hit the move button and then enter in a new customer where the contacts have to be moved to.

So, the selected contacts are showing correctly in my assignment block and I can read the newly entered customer. The only thing that is left is that I need to loop over the contacts so I can move them. Code to move them is also already done and tested.

Help is much appreciated.

Thanks

T

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Solved it myself.

DATA:

         lr_entity_customer TYPE REF TO IF_BOL_BO_PROPERTY_ACCESS,

         lr_entity_contact TYPE REF TO cl_crm_bol_entity,

         lr_iter TYPE REF TO CL_bsp_wd_collection_wrapper,

         lr_entity type ref to cl_crm_bol_entity.


  lr_iter ?= me->typed_context->contacts->get_collection_wrapper( ).

lr_entity ?= lr_iter->IF_BOL_BO_COL~GET_FIRST( ).

lr_entity->get_properties( IMPORTING es_attributes = lv_contactdetails ).

Answers (1)

Answers (1)

deepika_chandrasekar
Active Contributor
0 Kudos

Hi,

Create Custom controller and your model context node , bind the view2 context node to this custom controller context node. in over view page you can get the custom controller context node values.

Regards,

Deepika.