on 07-04-2011 8:21 AM
Hello All
I am not able pass the data from component to other component.
I have done like this.
1 Main Component (Parent component ) having below two child components.Embeded as used components.
2) Search Component and Details Component
3) In the Search Component having buttons, Say : Button u201CXu201D on click of button I am navigating to Details component view through FPM.
4) When I am clicking above button u201CXu201D raising the event to call the parent business logic method, there I am getting Structure with values and binded this structure to the node and Mapped this node to the Details component interface node. FYI : I kept the debugging point Structure is having data , I had set static attributes table to node instance.
5) In the Details component node data is not coming mean empty.
Thanks in Advance.
Br-
CW
Edited by: CarlinWilliams on Jul 4, 2011 9:21 AM
after the set_static_attributes statememt, did you bind the element to node using below statement?
lo_nd_nodename->bind_element( new_item = lo_el_nodename set_initial_elements = ABAP_FALSE)
Regards
Srinivas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please post your button action code.
And make sure that , final node which you are binding should be interface node. So in details component that node should have interface node property should be checked.
and you binded single row values using set_static_attributes, that is correct. FYI please check again.
lo_el_nodename->set_static_attributes( exporting static_attributes = ls_values) .
Regards
Srinivas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
It may be because of the mapping problem.
Right click the Details component node and 'Update Mapping'.
Regards
Shaira.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
When you use input Ext. check that the parent component should not be used as used component in child component.
Only in the parent component the child components should be used as used components and the usage has to be created for the
Child Components and the binding of the Node should be done from comp. controller of parent component to child node
by which you will be able to see double arrow against the node.This should work
Thanks,
Shailaja Ainala.
Hi,
In order to reteive the Node values from Parent Component to Child components,
the Nodes in the child Component should be declared as Interface nodes with Ext Input Checked under node properties.
Now in the Parent Component create the useage for the child components and bind the Nodes,now the data should flow from Parent Component to the child components
Thanks,
Shailaja Ainala.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.