Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Problem with formcalc code not properly executing in a dynamic table

$
0
0

I've got a table which has a sub total field in it with the following code:

 

if(Table2.Row1[*].level eq 1) then

Table2.FooterRow[0].Cell6 = Sum(Table2.Row1[*].shortdays)* 168.30*(Table2.Row1[*].staffrequired);

elseif (Table2.Row1[*].level eq 2)then

Table2.FooterRow[0].Cell6 = Sum(Table2.Row1[*].shortdays)* 176.33*(Table2.Row1[*].staffrequired);

elseif (Table2.Row1[*].level eq 3)then

Table2.FooterRow[0].Cell6 = Sum(Table2.Row1[*].shortdays)* 188.30*(Table2.Row1[*].staffrequired);

elseif (Table2.Row1[*].level eq 4)then

Table2.FooterRow[0].Cell6 = Sum(Table2.Row1[*].shortdays)* 269.35*(Table2.Row1[*].staffrequired);

endif

 

The problem i am having is that when i add a new line the formula above only takes the staffrequired field value from the first row not any subsequent row.  I can't work out exactly what I am doing wrong as apart from this issue it seems to be working fine.


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>