on 10-04-2011 11:29 AM
Hi Friends,
I have created a component ZXRP_TEST_INTERFACE1.
In the component controller, I have created an interface node u2018NODE_SFLIGHTu2019.
NODE_SFLIGHT is mapped to V_MAIN which is bound to Table UI element.
In WDDOINIT method of V_MAIN, I am filling the node with 10 records.
I have added a button to Table UI element, and when the user selects a particular record I should be navigating to another Component i.e ZXRP_TEST_INTERFACE2, Where I am displaying the selected record in the First component of table UI element.
In ZXRP_TEST_INTERFACE2 Component, node u2018NODE_SFLIGHTu2019 is mapped to Component controller, the same node is mapped to View MAIN, where I am displaying the Record selected in Previous Component.
But the problem is, in the First Component, when I select a particular record and navigate to second component by clicking on the button Display, I do not see the values selected in First component.
Once I am there in the second component, the interface node does not have any values.It is refreshed.
Please find the Code, which I have written in the on action u2018Displayu2019 button to navigate to second component.
data:l_api_main type ref to if_wd_view_controller,
l_nav_services type ref to if_wd_navigation_services,
L_TARGET_VIEW TYPE STRING,
op_plug type string,
ip_plug type string.
l_api_main = wd_this->wd_get_api( ).
l_nav_services ?= l_api_main.
op_plug = 'OUT_PLUG'.
Ip_plug = 'IP_PLUG'.
L_TARGET_VIEW = 'ZXRP_TEST_INTERFACE2'.
l_nav_services->do_dynamic_navigation(
source_window_name = 'W_MAIN'
source_vusage_name = 'V_MAIN_USAGE_2'
source_plug_name = op_plug
target_component_name = 'ZXRP_TEST_INTERFACE2'
TARGET_COMPONENT_USAGE = 'CU_MAIN2'
target_view_name = L_TARGET_VIEW
target_plug_name = ip_plug
target_embedding_position = 'V_CONTAINER/VCU_MAIN').
Regards,
Xavier.P
Edited by: Xavier on Oct 4, 2011 12:33 PM
Edited by: Xavier on Oct 4, 2011 12:34 PM
Hello Xavier,
the interface node 'NODE_SFLIGHT' in ZXRP_TEST_INTERFACE2 component should be marked as "Input Element (Ext.)" and data for this node has to be passed from the ZXRP_TEST_INTERFACE1 component via the controller usage. then only the data will be passed from the ZXRP_TEST_INTERFACE1 to ZXRP_TEST_INTERFACE2.
BR, Saravanan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.