I need to revert a value on a page to what it was at the time the page was opened if the user clicks 'No' on the confirmation dialog.
This is what I have now.
OnOpenPage()
ActiveStatus := Active;
CloseStatus := Close;
...
OnQueryClosePage(CloseAction : Action None) : Boolean
ReviewPeriod.GET(Code);
PhaseNo := Name;
IF Close <> CloseStatus THEN BEGIN
ConfirmChanges := ConfirmMsg;
Answer := DIALOG.CONFIRM(ConfirmChanges, TRUE, PhaseNo);
IF Answer THEN
EXIT;
IF NOT Answer THEN BEGIN
Rec.Close := CloseStatus;
EXIT;
END;
END;