Hi All
Is there a way to use OnQueryClosePage where a use can exit the record without saving. Say you are editing a record and a mandatory field is not filled in . at this point use has 2 choices, enter the mandatory field or exist record without any changes
trigger OnQueryClosePage(CloseAction: Action): Boolean
begin
// Check only when closing with OK or LookupOK actions
IF CloseAction IN [ACTION::OK, ACTION::LookupOK] THEN BEGIN
// Validate that Dimension is not empty
if Rec.Feild1 = '' then
Error('must have a value');
END;
end;