Solved

Notes how to check if  a document is saved.

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
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 …
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

911 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

23 Experts available now in Live!

Get 1:1 Help Now