Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Notes how to check if  a document is saved.

Posted on 2003-11-17
2
201 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.

828 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