Querysave order

(Notes Client only… no web access.)

I have a button on a for that is called “Submit”. It does some field adjustments that are needed specificially when the Submit button is clicked. It then does a FileSave and if there were no errors it does a MailSend and a FileClose…like this:

@If(@Command([FileSave]); @Do(@MailSend( “Jon Doe” ; “” ; “” ; “#” ; “” ; “Text” ;IncludeDoclink] );

@Command([FileCloseWindow])); “”)

But the code in my QuerySave runs AFTER my MailSend. Isn’t the QuerySave run right BEFORE the FileSave?

I have other field checks going on in the QuerySave that when hit they will display a message and Continue = False. So why does it continue on to the MailSend?

Subject: Querysave order

Subject: Querysave order

My vague recollection is that @Command([FileSave]) runs after other @Commands, which would mean that what’s happening is that your @Mailsend fires, then the @Command, which leads to the QuerySave. Having said that, I can’t find that particular thing documented in the help.