Expand my Community achievements bar.

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