Skip to Content
author's profile photo Former Member
Former Member

Storing collection of values in Web Dynpro


I have 2 views(View1,View2)

I have rows of 2 dropdowns in a table in View1. I select each of these drop downs in multiple rows and go to view 2. In View2 i need to retrieve all the values from View1. How will i retrieve these values?

Is there any collection kind of thing in Web dynpro??

Any help



Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Aug 02, 2006 at 12:01 PM

    Hi Sujesh,

    You could map the nodes of view1 to central nodes in the component controller and access them from view2.

    Best regards,


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member


      Through Component Controller you can get in second view. Otherwise create one attribute(dropvalue) as vector in component controller and bind into view1 and view2. After selecting values from dropdown in view1 put into dropvalue. In view2 you get from dropvalue.

      First option is best.

      Kind Regrads,


  • author's profile photo Former Member
    Former Member
    Posted on Aug 02, 2006 at 12:41 PM


    Let's say you have a context structure as this:



    ---Column1(value attribute bound to your 1st dropdown)

    ---Column2(value attribute bound to your 2nd dropdown)

    Have a context node structure as



    ---Value1(value attribute, String)

    ---Value2(value attribute, String)

    Map this to the component controller's context with the same structure.

    In the onSelect eventhandler, write something like this:

    IPrivate<view name>.IDataNodeElement elem = (IPrivateSDNCompView.IDataNodeElement)wdContext.nodeDataNode().getElementAt(wdContext.nodeTableProperties().getLeadSelection()); 
    if(elem != null){
    IPrivate<view name>.IDataNodeElement ele = wdContext.nodeDataNode().createDataNodeElement();

    Add component controller as required controller in view2.

    Now from view2, you can access it as

    wdThis.wdGet<component name>Controller().wdGetContext().nodeDataNode();



    Message was edited by: Satyajit Chakraborty

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.