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

Is this Captcha code corrupt?

How to Grab email address from webform and insert into form action

Thread: "Broken" background image with Super Key