Closed slimtom95 closed 5 years ago
Correct, the results are not saved anywhere; it would be inefficient to run the calculators again.
However, there is a...
In the first two calculator functions, store the result into a "hidden" column in dataRow
and then reference that hidden column from the final calculator. Columns created in this way would be completely unknown to Hypergrid or the data model's schema.
Amazing, the hack works.
Now when I computing A
and B
, I also save a A_tmp
& B_tmp
(columnName finally usable here)
And when computing C
, just refer them like A_tmp
|| A
.
Thank you joneit!
Suppose we have columns & their column calculators like these:
column
A
which is calculated from columnA1
A2
A3
columnB
which is calculated from columnB1
B2
B3
columnC
which is calculated fromA
&B
and
A1
toB3
they are just some plain columns. WhileA
andB
working fine,C
is ignoring the calculated result ofA
andB
. Instead, it simply takes the underlying plain value into its own calculation.I think I can always wrap the whole calculation logic to replace chain update, but is there any elegant ways to achieve a real chain update?