Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Bind repeating data to multiple fields

Avatar

Level 1

I am a livecycle numpty and I need some help! I am developing a readonly report. This report is using sample xml for databinding. Within the xml I have a repeating group - example:

<group>

     <groupItem>

          <addres>parp</address>

     </groupItem>

      <groupItem>

          <addres>parp</address>

     ...

In my report I have two sections that need to reference this repeating data. One section works and the other doesn't. I've read that you can't bind repeating data to multiple fields. How do I get around around this? I can't seem to get the global binding to work (is this purely for user entered data???)

Please help!

Cheers,

Rich

1 Reply

Avatar

Level 10

one way to do this is, in the Initialize event of the field in second repeating section, assign the rawValue from the first repeating section..

For example..

initialize event of Field2..

     Field2.rawValue = Field1.rawValue;

Other way is to read the XML tags and assign the value to the fields..

You need to loop thru the group element and read each group item value and assign the value to the field..

Field2.rawValue = xfa.resolveNode("$record.group.groupItem").value; //this command will only read the first occurance of the groupItem value.

Thanks

Srini