Expand my Community achievements bar.

automatic entry from one repeating subform to another

Avatar

Level 1

I've got two subforms are repeating and they have the same number of repeats.  What i want to be able to do is autmatically enter a value from subform1.text1 to subform2.text1.  The trick is that each repeated subform has a new value and matching repeats in subform 1 and 2 need to have those same values.

I've been playing with this bit of code to get it to work

xfa.resolveNode("subform1[" + this.parent.index + "]").text1.rawValue = this.rawValue;

Entry will always be made in subform 1 and that will need to be transfered to subform2.  I tried this code in the calculate event of subform1.text1, but no luck.

Let me know what my options are.

Thanks,

Matt


2 Replies

Avatar

Level 10

Use a global binding for those fields and give them the same name.

The they automatically have the same values.

Avatar

Level 1

That would work if the I had a single subform, however the subforms are repeating and each repeat has to have a different value.  Golbal binding makes all repeated subforms have the same value.