Currently, formulas are evaluated near the end of the “create new row” process. The result of this is that formula field values are not available to use when setting default values, etc.
In thinking this through, from a technical perspective, as soon as the “row” object is created, the formula fields exist and therefore should have a value.
During the “create new row” process, updateRow is called in a few different places for different reasons (e.g. setting default values). UpdateRow processing will evaluateFormulas as well but if a formula relies on a formula, the value wouldn’t be calculated correctly.
This stems from Bill’s post at https://community.skuid.com/t/ui-field-formula-to-return-current-time.
Couple of questions:
1) Was placing the evaluateFormulaFields near the end of the createRow process intentional?
2) Does it make sense to make this call sooner in the process?
Thanks!
Evaluate Formula Fields earlier in the Create New Row" processing steps"
This topic has been closed for replies.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.