cancel
Showing results for 
Search instead for 
Did you mean: 

Read Simple container element

Former Member
0 Kudos

Hi,

I have implemented the SAP_WAPI_READ_CONTAINER module function in Java Web Dynpro. This module function retreive information stored in a workflow container.

In my view, I have mapped the simple container context element to a table and I can see the data.

Now I would like to retreive the data individually and out of the table. The problem is that I have no idea how I can manage to do that. Can anyone give me a hand to solve that problem ?

Thanks in advance for your help.

Thibault

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can traverse the node and get the each element (row). Please find below the sample

for ( int i = 0; i < node.size(); i++) {

<variable1> = wdContext.node<Node>().get<Node>ElementAt(i).get<Attribute>;

<variable2> = wdContext.node<Node>().get<Node>ElementAt(i).get<Attribute>;

}

- Saravanan K

Former Member
0 Kudos

Working just fine Thank you !! I wasn't going deep inough to the SimpleContainer node so I was not retrieving anything.