cancel
Showing results for 
Search instead for 
Did you mean: 

Transferring Attribute Between Components

selvakumar_mohan
Active Participant
0 Kudos

Hi All,

i am in need to know how to transfer attribute value from one view under one component to another view in another component. Please help me in understanding the same.

thanks,

selvakumar M.

Accepted Solutions (0)

Answers (2)

Answers (2)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

You have already been given two correct approaches. There is a third. You can make a context node itself an interface node. You can then do cross component context binding (which is pretty cool that this works).

[http://help.sap.com/saphelp_nw70/helpdata/EN/8e/c0b341800e3231e10000000a155106/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/EN/8e/c0b341800e3231e10000000a155106/frameset.htm]

Former Member
0 Kudos

Hello,

The easiest way to do this is creating importing/changing attributes in the inbound plugs that you use to call the other view/component. And another way is to create an interface method in the called component/view.

See these: [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2e71ce83-0b01-0010-11a4-98c28a33195f]

[http://help.sap.com/saphelp_nw04s/helpdata/en/7e/77a8af020ffa4596aad94019de8de7/frameset.htm].

Regards.

selvakumar_mohan
Active Participant
0 Kudos

hi,

i was successful in transferring the attribute from one component. i dont know how to receive the same in the next. where the attribute will be available in the next component. if it is available with the default inbound plug where will be the atrribute ?

thanks,

selva M.

alejandro_bindi
Active Contributor
0 Kudos

Which method of the ones proposed you've used?

If you used plug parameters, two steps are required:

- In the source component, the parameter must be declared directly in the outbound plug. When calling the FIRE_(plug)_PLG method you send this parameter.

- In the destination component, you must declare the Importing parameter in the event handler method for the inbound plug (HANDLE_(plug)), with same type and name as the other.

Regards