Skip to Content
Author's profile photo Former Member

Adding rows dynamically in a table

Make an Insert button on the layout and inside the click event of the form, please write the following code:

var instmgr = data.Bodypage.[TableName].DATA.instanceManager;     
var inst = instmgr.addInstance(1);
var toind = data.Bodypage.[TableName].DATA.index + 1; (Add the rows row 2nd postion)
var frmind = inst.index;

instmgr.moveInstance(frmind, toind);

There you can do this.

Rgds,

Nitin.

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.