?
Solved

Notes how to check if  a document is saved.

Posted on 2003-11-17
2
Medium Priority
?
204 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
[X]
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
2 Comments
 
LVL 31

Accepted Solution

by:
qwaletee earned 100 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

743 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