Skip to Content
0
Former Member
May 11, 2010 at 04:45 PM

Problem accessing dynamically created table line

48 Views

Hi everyone.

I'm unable to solve the following problem:

In an offline scenario I have a table which contains one line at creation time. The form offers a button to add lines to the table using javascript and the instanceManager of the table.

If the added lines are beeing filled by the user I can extract that data without a problem.

But I cannot acces the newly generated fields with java script.

I'm not sure, what the problem is. Here is the code, which should do the job:

xfa.resolveNode("xfa.form.data.Inhalt.CONTACTS.DATA.NAMEV[" + position + "]").rawValue = 'Andreas';

This works fine, for the table line, that exists right from the beginning(position = 0), but not for any added line.

I keep getting this error: xfa.resolveNode("xfa.form.data.Inhalt.CONTACTS.DATA.NAMEV[" + position + "]") has no properties

What am I doing wrong?

Thanks for any hints,

Andreas.