Getting the sum of variable rows (rows number is unknown)


dear all,

i need create script option addidional raws (dezimalfelde2 +dezimalfelde3+..... ) total sum should include future raws…

how can create it? please see above below javascript…i tried write (dezimalfelde2[*]) indicate fute rows not working!

 

plz ?

 

1.png

moin,

 

the accessor placed @ wrong place.

there 1 "dezimalfeld2" in each row don't need [*] accessor here.

but row "detail" repeating, here place should use it.

 

var total = 0; var fields = xfa.resolvenodes("tabelle4.detail[*].dezimalfeld2");  (var = 0; < fields.length; += 1) {     total += parseint(fields.item(i).rawvalue); } this.rawvalue = total; 


More discussions in LiveCycle Designer


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support