These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Problems adding an instance within another instance.

rushtons
Registered: May 13 2010
Posts: 13
Answered

Hey guys, I'm trying to create a table where you can add additional rows but also add a button underneath to add a whole new table which in turn can also have it's own rows added. The table part works fine, my problem occurs when there is more than one table and I add a row to the last one it adds itself to the first table, regardless of my clicking the button located in the last table. I'm guessign that I'm not referencing it's parent correctly. I'm fairly new to livecycle and it's thrown me for a loop.

Thanks

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Where is the button located you use to add a new table row?

If if is within the table then you only need this short expression.
_Row1.addInstance(1);
So the it will only reference to the rows in the current instance of the table.

Example:
[url]https://acrobat.com/#d=EdMcDus6doS2Irv43ox4zQ[/url]

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

rushtons
Registered: May 13 2010
Posts: 13
Radzmar, that's it! Thanks!

Sarah
JCASE
Registered: May 12 2010
Posts: 29
what if it is not within the table?