Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Row1 is null when adding new row

Magus069
Level 10
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
yvindevogel
Level 2
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.

rbutler001
Level 1
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?