Solved

Notes how to check if  a document is saved.

Posted on 2003-11-17
2
200 Views
Last Modified: 2013-12-18
In an action button I save a document using
@Command([FileSave])

there are some input validation parameters that give Failure
messages if fields are left blank.

what I want to do is close the document if the file was save
but leave it open it wasn't

so
if file was saved
 @PostedCommand([FileCloseWindow])
end if

Can't figure out the syntax to do this
0
Comment
Question by:marefin
2 Comments
 
LVL 31

Accepted Solution

by:
qwaletee earned 25 total points
ID: 9765014
Try:

@If(
  @Command([FileSave]);
    @Command([FileCloseWindow]);
 ABORT
)


Or...

@If(
  @IsValid;
    CONTINUE;
 @Return(ABORT);
);
@Command([FleSave]);
@Command([FileCloseWindow])



Or...
Just put in a close window, no save.  User is prompted to save.  if user chooses yes, validation is performed, and either allows save to go through and closes window, or blocks both save and cose.
0
 

Author Comment

by:marefin
ID: 9765214
I used

@If(@Command([FileSave]);@Command([FileCloseWindow]); CONTINUE)

This way if the file is saved properly the document is closed
otherwise its left open.

0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question