Problem solve Get help with specific problems with your technologies, process and projects.

Generating a customized error in QuerySave so FileSave does not pass

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.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...