on 06-04-2014 12:54 PM
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
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 ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.