How to have Querysave abort the actual "save"?

How come if I have this in the QuerySave, it still does the save? (I can’t put this in input validation as it is a computed field that gets filled in via a picklist button). How do I just say ‘abort’ the save?

@If(ConReq= “”;

@Do(@Prompt([Ok];“Missing Field” ;“You must fill in the Requestor field in the CONTACT SECTION to submit”);

@Return(“”)); “”);

Subject: How to have Querysave abort the actual “save” ?

Tammy,

You need to juse the @Success and @Failure functions.

Your code will just display a prompt and then carry on (ie: save)

HTH

Mike

Subject: @Success/@Failure in input val’s only?

Hmmmmm … I thought you were only supposed to use those functions in input validations?

I can’t get it display a prompt by putting @If(ConReq= “”;@Failure(“Forgot Requestor”);@Success);

in QuerySave.

Subject: RE: @Success/@Failure in input val’s only?

In which case, you will probably have to use script and use continue=False

if source.fieldgettext(“ConReq”)=“” then

Msgbox(“You forgot the requestor”)

Continue=False

Exit Sub

End If

HTH

Mike

Subject: That’s a fact (was: RE: @Success/@Failure in input val’s only?)

There’s no surefire way in Formula Language to stop a save in the QuerySave; the Input Validation events are the only effective Formula save-stoppers. If you need to control the save from the querysave, you really have to use the Continue value in LotusScript.

Subject: RE: How to have Querysave abort the actual “save” ?

You can also use the field SaveOptions at the beginning of your formula. Then if your condition succeeds, set it to “1”.