Expand my Community achievements bar.

Copy to the last row a table

Avatar

Level 1

H,

I have created a table that adds a row when clicking on a button. The next step for me is to copy the information I have in some fields to the correspondent columns of the created row( last row) of the table. Since the row number alters I don't know how to do that.

regards

1 Reply

Avatar

Level 10

Hi,

The addInstance() method returns the same object as if you have executed a resolveNode targeting the row added.  So if your row was called Row1 and contained a cell with a field called TextField1 then you could add a row and set the field's value with code like;

var newRow = Table1._Row1.addInstance();

newRow.TextField1.rawValue = "some information";

Regards

Bruce