Expand my Community achievements bar.

SOLVED

How to successfully reset field(s) in a repeating subform

Avatar

Level 1

Hi,

I'm getting more and more frustrated while trying to develop a form(dynamic xml) with Lifecycle Designer.

As a test we are building up a form which contains a repeating subform.

We want to reset the fields in the current subform and only the current subform using the following snippet:

var som_kdnr = this.parent.somExpression + ".Kopfzeile.Kundennummer";

xfa.host.resetData(som_kdnr);

But instead of resetting the field "Kundennummer" in the current subform this code resets this field in all subforms.....

And to make this behaviour even more "interesting" this happens only if we're using Adobe Reader XI - if we're using Foxit Reader the script does the job.........

How can we get this running in both readers?

1 Accepted Solution

Avatar

Correct answer by
Level 10

You should not add a string to the somExpression yourself, you should access to the field Kundennummer and then use its somExpression instead of making it yourself.

this.resolveNode("Kopfzeile.Kundennummer").somExpression;

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

You should not add a string to the somExpression yourself, you should access to the field Kundennummer and then use its somExpression instead of making it yourself.

this.resolveNode("Kopfzeile.Kundennummer").somExpression;