Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FileSave and FileCloseWindow

Status
Not open for further replies.

bombtrk

Programmer
Joined
Oct 15, 2007
Messages
3
Location
US
I'm trying to use an Action button to set a field and then save and close the form I'm working on. My code is this...

@SetField("txtStatus"; "Closed");
@Command([FileSave]);
@Command([FileCloseWindow])

After I click the Action button, Lotus Notes still asks me if I want to save the document. Why is that and how do I bypass the message box Lotus Notes prompts me?
 
I figured it out. This is how you do it for anyone who is wondering...

Check := @If(@IsValid; 0; @Return(0));
@PostedCommand([FileSave]);
@PostedCommand([FileCloseWindow]);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top