Solved

Closing a notesuidoc w/o save prompt.

Posted on 2000-03-31
4
338 Views
Last Modified: 2013-12-18
Hi
When I try to close a notesuidoc it prompts the user if they want to save the doc before it is closed even though I save the doc in the script.  Is there a way around notes giving the user this prompt?  Sorry I only have 18 points to give :~(
0
Comment
Question by:sbaek
4 Comments
 
LVL 6

Expert Comment

by:ghassan99
ID: 2672616
Create a hidde field on the doc and name it 'SaveOptions' and set its default value to 1.

-Gus
0
 
LVL 7

Expert Comment

by:Z_Beeblebrox
ID: 2673211
What Gus has said works assuming you always want to save the document. But if you only want to save it conditionally, then your script needs to save the document. Without knowing what your script is doing, it is hard to say why it is not saving the document properly. One suggestion I can make though is that if you are using @commands then try using @postedcommand for the file save.

Zaphod.
0
 
LVL 2

Accepted Solution

by:
mchampou earned 18 total points
ID: 2681400
Try the following :

If you need to save the doc before closing it, use the UIDoc method "Save"

then call the UIDoc method "Close".

If you don't want to save the doc before closing it, you can do the following :

with the NotesDocument, call the replaceitemvalue method with the following parameters:

Call Doc.ReplaceItemValue("SaveOptions", "0")

Then call the UIDOC.Close method.

Give it a shot :-)

mchampou
0
 
LVL 1

Expert Comment

by:roosterup
ID: 2689949
Doc.SaveOptions = 0  where "doc" is the "Background Class" document NOT the NotesUIDocument then you "close" the UI Document.
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

Suggested Solutions

Title # Comments Views Activity
IBM Notes 9 crashed when open any attachment file 16 445
Domino Server 11 65
lotus notes, exchange 7 109
Domino 8 run a specific agent on all nsf in a folder 9 42
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…
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

867 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

22 Experts available now in Live!

Get 1:1 Help Now