I have a formCalc scripts referencing in a subform instance that's set at zero and remains "hidden" on initial opening of the file.
Script debugger windows kicks in when the file is open saying there's an error cause there's not instance of it yet...
Can I disable the script debugger window?
Thanks in advanace!
Solved! Go to Solution.
Designer tries to process the FormCalc. There may be a way to bypass the error but I am not sure how. It will basically ignore the JS error and continue to work.
With that said, does anyone know a good place to learn a crash course on how to write up a sum script in JS.
Sounds like I need to know Var and ++i++ and real programing stuff.
All I need is two examples.
Field A needs to add up table column values from fields "aa" and "bb"
Field B just needs to add up table column values from "cc"
Hey shawnFMU, Here is the code to do a simple sum of table column values: (you will need to change the path)
$.rawValue = Sum(FORM.Page1.Body.PaymentTable.MultiPaymentRow[*].AmountPaid);
Here is the code to sum multiple fields:
$.rawValue = InitialAmount.Totalprice - PaymentTable.Footer.AmountPaidTotal;//You can also use '+'
Both are form calc, put the code on the calculate event for the object that you want to set.
Hope that helps.