Skip to Content
avatar image
Former Member

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

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.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Jul 10, 2009 at 06:23 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 10, 2009 at 06:45 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 26, 2009 at 09:23 AM

    Hi all,

    Thank you all for your solutions.

    Thanks,

    Aravindan

    Add comment
    10|10000 characters needed characters exceeded