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
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

delete \add rows by button

khaldoona993089
Level 3
Level 3

I have made buttons that adds and deletes rows on my Form

I have used this script to button ((add rows)):

Tablesons._Row1.addInstance ();

And this code to the button ((delete rows )) :

var vRows = Tablesons._Row.count-1;

for(var i=vRows;i>0;i--){

if (Tablesons.resolveNode("Row1[" + i + "]").Cell1.rawValue!==1) {

form1.main.Tablesons._Row1.removeInstance(i);

  }

}

===

the Add button works perfectly

but the delete button is do nothing..

what is the wrong with it  ?!

((Tablesons)) is the table name .

add delete rows.jpg

1 Accepted Solution
Mayank_Gandhi
Correct answer by
Community Advisor
Community Advisor

Here is a dynamic table sample with add and delete functionality, please refer it.

Shared Files - Acrobat.com

Thanks,

Mayank

View solution in original post

2 Replies
Mayank_Gandhi
Correct answer by
Community Advisor
Community Advisor

Here is a dynamic table sample with add and delete functionality, please refer it.

Shared Files - Acrobat.com

Thanks,

Mayank

View solution in original post