Solved

Notes how to check if  a document is saved.

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

757 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now