Avatar

Level 7

--Breaking the string to add the 0 that way is probably not strictly necessary. It was out of habit since I am usually putting a variable in place of the number.

--The 0 in brackets is required when you have multiple instances of something. In your case, RowUserName. The first row is called RowUserName[0].

The addInstance function will optionally take a single parameter: a Boolean. So, by putting a 1 in the parenthesis, you're essentially saying addInstance(true). Since it's optional, I left it out.

I tried my version (which has only a table with buttons on it), and I was able to still use the add button to add a row. xfa.resolveNode looks for an item that matches the string provided. So, if your page isn't named Page1, that would stop it from finding the row to add. I would recommend using as little as possible to find the right table. E.g., if your table named Table1 is the only Table1, then you don't need Page1.UsersRequiringAccess for resolveNode to find it.

I think you might have pasted the wrong text here. The text I see is for adding a row, not removing one.