Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
This workaround works great, however, when I save the form and go back into it, the override didn't stay. Is there a script for that or is that the way it goes....I'm using LC Designer 7.1. thanks
Views
Replies
Total Likes
Similarly I have a add remove instance on my form. So here is my calculation field
Sum(F.P1.CalcGroup.CalcArea.ItemSet[*].Cost)
However when an instance is removed the calculation isn't automatically updated, it holds the previous value. How can I make the field recalculate on change?
My override statement is below
----- F.P1.CheckBox1::change - (JavaScript, client) ------------------------------------------------
CheckBox1.rawValue = "1";
----- F.P1.subtotal::calculate - (JavaScript, client) ----------------------------------------------
if (CheckBox1.rawValue!=1)
F.P1.overflowTrailer.Amount.rawValue = Sum(F.P1.CalcGroup.CalcArea.ItemSet[*].Cost);
----- F.P1.subtotal::change - (JavaScript, client) -------------------------------------------------
CheckBox1.rawValue = "1";
Views
Replies
Total Likes
In order to have a calculated field reflect a removed instance (or added instance), add this line in the code that removes or adds the instance:
xfa.form.recalculate(1);
The following Adobe forum entry was also useful to me to figure out how to calculate a field from numerous (unknown number of) instances of subform fields: http://forums.adobe.com/message/2064154#2064154
Views
Replies
Total Likes
This didn't help me, however, I figured out how to fix my problem.
In my Override.pdf sample, I removed the change event script CheckBox1.rawValue = "1"; from the subtotal field and added it to the Amount field. This allowed me to override my Amount field and save the change.
Views
Replies
Total Likes