Skip to Content
avatar image
Former Member

WD ABAP

Hi,

While traversing between screens in Web dynpro, how can i store a value on a particular screen and then retrive it when i come back to that screen.

eg. : if i have a button saying show more data, and the user has clicked on it... and he traverses thro other screens and comes back to this screen, i want to continue showing him "more data", how can i store that value of this screen element and retrive it back?

Points will be rewarded to all helpul answers.

regards,

raksha

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Aug 21, 2007 at 10:19 AM

    Hi Raksha,

    You can try this. Have a context node with several attributes (depending on the screen fields you have on your view). Populate this context node with elements using a supply function or wddoinit (or whtever your logic maybe). Now, as you go from screen to screen, change the leadselection of you node to the next element (You can do this in an inbound plug pointing to the same view or in the action handler of a button that says 'Next' or 'More Data').

    This way you can go back and forth to view your data and data will not be lost while moving. Just add 1 to leadSelection and subtract 1 from leadselection on click of 'Next' and 'Previous' respectively.

    Hope this helps.

    Regards,

    Neha

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 21, 2007 at 10:24 AM

    Hi again,

    If you have a requirement that this traversal is not just rows of a table but some 'More Data' about the already displayed data, then you don't have to worry as even if a field is not displayed on the view, the values in the context are still retained.

    Hope this is what you were looking for.

    Regards,

    Neha

    Add comment
    10|10000 characters needed characters exceeded