There are 2 rather important bugs plaguing conditional column equations.
1- First one erases the data in the fields that include a conditional equation/function and no row equation
In a sample dB, "invoice" grid :
- In the field management dialog "total" field, remove the row equation
- back to the grid : check or uncheck the "billable" field : total values disappear and... it shouldn't
EDIT : forgot to add the workaround. If there's no equation in the row equation section of that field, just add a "=[that field] " in the row equation section. (replace "that field" with the name of your field in which you implemented the conditional column equation, of course.) This probably hits performance a bit.
2- Second one : automatic recalculation isn't (re)performed when the condition is "met" or "unmet"
- using the invoice grid again : check/uncheck the billable field : nothing gets automatically recalculated at the parent level.
EDIT 2011 11 01 -- 14 09 : yet another work around to force recalc in that particular case :
In autoassigns of the various conditions add [That Field] = [That Field]
E.g.:
A:[the field where there's the conditional column equation] = [the field where there's the conditional column equation]
E:[the field where there's the conditional column equation] = [the field where there's the conditional column equation]
These work around are not ideal, but they work.
Comments
A: NotesChildren = NotesChildren
M: NotesChildren = NotesChildren
E: NotesChildren = NotesChildren
NotesChildren
AnyTrue(
Function AnyTrue(x)
dim d, i
AnyTrue = false
d=ubound(x)
for i=0 to d
if x(i)=true then AnyTrue =true
next
end Function