
I have a subform listpart that is working nicely. It has a medium complexity calculation that looks at values in the parent page record in order determine branches of logic. As such when 3 or 4 different fields in the parent change, I'd like to reflect that for any records shown in the list, by recalculating values. For this, flowfields don't work.
At the moment, I am putting the following code after these fields in the parent page:
trigger OnValidate()
begin
CurrPage.Update();
end;
The on the child page I have the following:
trigger OnAfterGetCurrRecord()
begin
Validate(Quantity);
end;
This appears to work, by forcing the validation of one of the fields which has validation event and a call to calculate specific totals on the line.
However, it seems curiously non-specific and I worry that it might have other repercussions.