Adding columns in a dynamic table


i have created table allows users add or delete rows needed. each row , column contains scripting automatically sum data entered table. works great except 1 thing - new rows added user aren't being calculated column totals. new rows calculate correctly row totals. did wrong here? i've attached table can see i've done.

 

http://tinyurl.com/23a6wz5

i see 2 issues.

 

1. on calculations using [*] notation occurances of field. subform or rowname has occurance on not individual fields....so remove [*] c1, p1 etc... fields.

 

2. when add dynamic subform have fields created registered when calcualtion fires knows new fields there. on each addrow or remove button add line of code end of script:

 

xfa.form.recalculate(1)

 

hope helps

 

paul



More discussions in LiveCycle Forms


adobe

Comments

Popular posts from this blog

CS5 Adobe Media Encoder: Encode failed because the source duration is nil.

cf_sql_integer vs cf_sql_bigint vs cf_sql_int??

localhost/joomla15/administrator doesnt work - Joomla! Forum - community, help and support