Hi experts
I have a problem with passing a collection from one component UI to another usage component (Which is embeded ). Here is step.
1. I have created Z componentUI name "A" and add standard component UI (SRQM_INCIDENT_H) as a component usage to component A.
2. In standard component (SRQM_INCIDENT_H). I have created enhancement set "ZH_XXX" and start enhancing "SRQM_INCIDENT_H/MainWindow" by adding customize inbound plug called "ip_from_search_so".
3. Then I create Z component B. Create context node MYNODE in component controller and view controller , bind it together.
4. I have add Z component B to standard component UI (SRQM_INCIDENT_H with enhancement set) as a usage component. Enhance "SRQM_INCIDENT_H/IncidentVO" by adding MainWindow of component B (B_usage_name.B/MainWindow) in view area.
5. I go to configuration tab of SRQM_INCIDENT_H/IncidentVO . Drag the B_usage_name.B/MainWindow from left to right with load option "direct" .
6. In inbound I have just created "ip_from_search_so" . I have inserted snipped of this code below.
----------------------------------------------------------------------------------------------------
data lr_usage type ref to cl_bsp_wd_component_usage.
data lr_context_node type ref to ZL_ZCMPUI_S_BSPWDCOMPONEN_CN01.
lr_usage ?= me->comp_controller->get_component_usage( 'B_usage_name' ).
lr_context_node ?= lr_usage->get_context_node( 'MYNODE' ).
* building collection which is passed from inbound plug. (iv_collection)
..
..
..
lr_context_node->collection_wrapper->set_collection( lr_col ).
* END OF METHOD
----------------------------------------------------------------------------------------------------
7. Come back to component A. Create navigation link from A/mainWindow to SRQM_INCIDENT_H/MainWindow (ip_from_search_so).
Then I navigate from A to SRQM_INCIDENT_H like this route.
A-----------> SRQM_INCIDENT_H/MainWindow --------embed--------> B
After finish all these steps. I think the data in iv_collection should be passed to the context node of component controller of component B(in step number 6).
But it's not ![]()
There are no any message. No any errors. Just display with blank context node (As it show data not bound)
Any suggestion ?
Thanks is advance