Hi!
I created a page extension with new action that must update a field in some lines on some conditions.
if JobPlanningLines.findset() then begin
repeat
JobPlanningLines."Line Discount %" := (*some formula*);
JobPlanningLines.modify(true);
until JobPlanningLines.next() = 0;
end;
In this table there are some fields (like Line Amount) that should be recalculated automatically on changing the Line Discount % field. When I change this field manually, Line Amount changes on the fly automatically. Dut when I change Line Discount % field via my Action, it is changing correctly, but Line Amount fields is not changing.
What should I do to initiate this recalculation after field updating? CurrPage.Update and JobPlanningLines.Validate("Line Discount %") are not working.
Thank you!