Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Row1 is null when adding new row


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 :


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


Level 10

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



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.


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?