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
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.