cancel
Showing results for 
Search instead for 
Did you mean: 

Not able pass the data from component to other component.

carlin_willams
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member199125
Active Contributor
0 Kudos

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

former_member199125
Active Contributor
0 Kudos

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

former_member389677
Active Participant
0 Kudos

Hi,

It may be because of the mapping problem.

Right click the Details component node and 'Update Mapping'.

Regards

Shaira.

carlin_willams
Participant
0 Kudos

Hi Both

SA : Node Input check i have tried it was not helped

SM : I verified all the mapping is fine it is not issue with mapping.

BR

-CW

former_member262988
Active Contributor
0 Kudos

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.

former_member262988
Active Contributor
0 Kudos

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.