cancel
Showing results for 
Search instead for 
Did you mean: 

HOW TO GET THE SELECTED VALUE IN A ROW FROM ONE VIEW TO ANOTHER VIEW?

Former Member
0 Kudos

hi all,

I have a small issue.

i have created two views.In the table of the first view i'm selecting a row and pressing the button it will move to next view.

i am adding some fields manually in the table of the second view and pressing the save button.Here all the values should get updated corresponding to the field which i have selected in the first view.

I want to know how to get the particular field in the selected row from one view to another view.

Kindly help me.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Get the selected value and store it in component controller context or store it in component controller attributes, or in assistance class attributes and in called view fetch it from there.

Regards

Manas Dua

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi all,

Thank you all for your solutions.

Thanks,

Aravindan

Former Member
0 Kudos

Hi,

Any data sharing accross views can be achiveved by defining CONTEXT data in COMPONENT CONTROLLER and mapping it to the CONTEXT of all the views. Follow the below steps.

1. Define a CONTEXT NODE in component controller

2. Define same CONTEXT NODE in all the views where this has to be accessed & changed.

3. Go to CONTEXT NODE of each view, right click on the node and choose DEFINE MAPPING.

This is how you map CONTEXT NODE and same can be accessed/changed from any VIEW or even from COMPONENT CONTROLLER. Any change happens at one VIEW will be automatically available in others.

Check the below link for more info regarding same.

[http://help.sap.com/saphelp_nw04s/helpdata/EN/48/444941db42f423e10000000a155106/content.htm]

Regards,

Manne.