Skip to Content
avatar image
Former Member

How to loop through a Data Node

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 25, 2007 at 04:20 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 25, 2007 at 02:55 PM

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

    Add comment
    10|10000 characters needed characters exceeded