Expand my Community achievements bar.

Applications for the 2024-2025 Adobe Experience Manager Champion Program are open!

Row1 is null when adding new row

Avatar

Level 10

Here I have a little problem with my table...

When I'm trying to add a new row using this.resolveNode("Table.Row1").instanceManager.addInstance(1);

It pops me an error such as:

TypeError: this.resolveNode("Table.Row1") is null...

This error pops up once I have 2 rows... it can't add a third row....

If I write :

this.resolveNode("Table.Row1[0]").instanceManager.addInstance(1);

It will add a row no problem. BUT the problem is when I save the form and reopen the form... there's only the first row (Row1[0]) and it's data that is showing up on the form...

Anyone knows how can I fix this?

3 Replies

Avatar

Level 10

Read my other post... I really need help out here.... anyone?

http://forums.adobe.com/message/6011571#6011571

Avatar

Level 2

Have a look in the settings of the form.  In Designer ES4, it's "File -> Form Properties -> Run time".  You have a setting about preserving script changes or not.  Make sure the value is set to "Automatically", to show the changes you have done through scripting.

Avatar

Level 1

I am having a issue that is kind of related to this post. Can you tell me where did you put your code to add the row?

I am trying to make a subform visible when a button is clicked. The 1st subform works fine but when trying to add another instance for the 2nd subform to be added when the button is clicked again, nothing! Can you help?