I have field validation in the QuerySave event. In case of non-validation I set the continue flag to false and I stay with the open document.
It succeeds with a button with @Command([FileSave]) but it fails with a button with the formula:
@If(!@IsError(@Command([FileSave])) ; @Command([FileCloseWindow]); @Return(""))So how can I generate a customized error in the QuerySave event so that the FileSave does not pass and the document window will stay open?
FileSave never returns an error code -- it returns True if the save worked and False if it didn't. Try this instead:
@If(@Command([FileSave]) ; @Command([FileCloseWindow]); "")
Dig Deeper on Lotus Notes Domino Formula Language
I hardly ever see the @IsValid function used in actions that try to Save and Close a document.
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.