Autonumber for several fixed rows


i have used autonumber dynamic row instances no problem, have problem table starts 3 rows different content, , user needs able add , delete rows, @ same time maintaining autonumbering.

 

i created table 3 rows, , each row has same name (table1.row) - set binding repeat row initial count set 1 - no minimum count

on text field in row, use calculate event with

 

var vindex = ["(a)", "(b)", "(c)"];
var = this.parent.index;

this.rawvalue = vindex[i];

 

this produces rows (a), (b) , (c)

 

i have delete button each row - click event 

 

table1.row.instancemanager.setinstances(0)

 

- deletes row click on

 

all far, autonumbering not recalculate remaining rows when delete one.

 

 

does have idea of how can remaining rows recalculate? tried putting

 

xfa.form.recalculate();

 

in various events, no joy

oh - found own solution. same above,

 

"on text field in row, use layout:ready event with

   

var vindex = ["(a)", "(b)", "(c)"];
var = this.parent.index;

this.rawvalue = vindex[i];

 

this produces rows (a), (b) , (c)  - , deletion works remove row , renumber remaining ones.



More discussions in LiveCycle Designer


adobe

Comments

Popular posts from this blog

Could not place because the source rectangle is empty

Thread: Using smartcard reader with vpnc

Adobe Font Folio 7.0 or just 7?