Notes Ninjas Notes Ninjas
Lotus Notes hints, tips, error messages
How do I prevent the Save changes yes no cancel button ?

Hint Short Cut: Add this to your code & documentation to help you find this page.
http://www.notesninjas.com/#SaveChanges or http://www.notesninjas.com/A555F9/nn.nsf/ByAlias/SaveChanges


When you have a save action you sometimes get the message: Save changes yes no cancel. Here's how to prevent the dialogue coming up.





Put in the action formula:

FIELD SAVEOPTIONS:="0";

@postedcommand([filesave])

 

Note there should be a field on the form called "SaveOptions" withe value "1" and it should be editable.

Alternatively you can put in the formula:

 

r:=@command([filesave]);

REM "if r=0 then save has failed due to querysave or input validation checks.";

@If (r=0;@Return("");"");

@postedcommand([filesave]);

@postedcommand(fileclosewindow])

 

or a combination:

r:=@command([filesave]);

REM "if r=0 then save has failed due to querysave or input validation checks."

@If (r=0;@Return("");"");

FIELD SAVEOPTIONS:="0";

@postedcommand(fileclosewindow])

 

In the discard changes button you can put:

FIELD SAVEOPTIONS="0"

@postedcommand(fileclosewindow])

 

 

 Jump to:     Notes Tips
    Lotus Notes Index 
  Register for Tips
Previous Lotus Notes Tip 
    Next Lotus Notes Tip
Your company logo here?
Adam Foster
Free Cash Making Web Site
Free Revenue Earning Blog Site
 Free Revenue Earning Newsletter Site   
Free Search Pages Free Web stats
Free Contact Us page
Cheap .com domain names
 Need a website or 
   Lotus Notes
  problem solved?
Adam Foster
Web Services Platform Architecture: Soap, WSDL, WS-Policy, WS-Addressing, WS-Bpel, WS-Reliable Messaging and More by Francisco Curbera, Frank Leymann, Tony Storey, Donald Ferguson, Sanjiva Weerawarana
Other books claim to present the complete Web services platform architecture, but this is the first one I've seen that really does. The authors have been intimately involved in the creation of the architecture. Who better to write this book?
See at: Amazon.co.uk | Amazon.com |