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

Nested nodes


I'm having a problem using nested nodes in Web DynPro. Consider the following context:

L Person
     L   Data
     L   Totals

The context is filled with data by calling a bapi. There are two scenario's for the application, one which should only display the output for one person, and one where the output contains data of all the persons in a team.

Every person has elements in Data, but for some Totals doesn't exist. When I execute this for one person, there is no problem. But when I do it for a team, with some persons having a Totals table and others not, the persons which shouldn't have a Totals table all get the same table belonging to another person.

I've made all my context nodes non-singletons and the minimum selection and minimum cardinality is 0 for the node Totals.


should return null sometimes but it never does ...

Any idea?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 15, 2009 at 03:58 PM

    I am not sure if I understand your problem correctly but with the following context structure

    Person (node, c=0:n)
    -- Data (node, c=0:n, singleton=false)
    -- Totals (node, c=0:n, singleton=false)

    you can access the totals for the person at index 3 using the following code

    IPersonElement person = wdContext.nodePerson().getPersonElementAt(3);
    ITotals totals = person.nodeTotals();
    if (totals.size() == 0)
      /* no totals for this person */
      for (int i = 0; i < totals.size(); ++i)
        ITotalsElement total = totals.getTotalsElementAt(i);


    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.