delete \add rows by button | Community
Skip to main content
Level 2
January 6, 2019
Solved

delete \add rows by button

  • January 6, 2019
  • 2 replies
  • 2879 views

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 .

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Mayank_Gandhi

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

Shared Files - Acrobat.com

Thanks,

Mayank

2 replies

Mayank_Gandhi
Adobe Employee
Mayank_GandhiAdobe EmployeeAccepted solution
Adobe Employee
January 7, 2019

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

Shared Files - Acrobat.com

Thanks,

Mayank

Level 2
January 16, 2019

thaaankkk youuuu sooooo much ,,,,