cancel
Showing results for 
Search instead for 
Did you mean: 

How to loop through a Data Node

Former Member
0 Kudos

Hello,

I have an Interactive Adobe form in WebDynpro Java project.

My data View tab includes the following structure:

Bapi_test

-


ValueHelpData

-


CodeNumber

-


CodeDescription

Can someone please tell how I can loop through the “ValueHelpData” node, and get values for “CodeNumber” and “CodeDescription”

The ValueHelpData node has the cardinality of 0..n. and has approximately 100 elements.

Thanks. Your help is much appreciated.

Rob.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Create a dynamic table with 2 columns and drag the CodeNumber and CodeDescription fields to the data row of the table. Job done...!!

Former Member
0 Kudos

Hi Robby,

You could try the following :

int n = wdContext.nodeValueHelpData().size();
for(int i = 0; i < n; i++)
{
   wdContext.nodeValueHelpData().moveTo(i);
   IPrivateMyDataView.IValueHelpDataElement ele = wdContext.currentValueHelpDataElement();
   String codenum = ele.getCodeNumber();
   String codedesc = ele.getCodeDescription();
   // Any other processing logic..//

}

Hope this helps.