Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Update with F9 automaticly within a form

Posted on 2000-04-07
1
Medium Priority
?
285 Views
Last Modified: 2013-12-18
Hi

We have Notes and Domino 5.02b

I have in a database a form that opens a view against the maildatabase. If at user have this database open (it is bookmarked by default in our organisation) and also the maildatabase open in a normal way and shut down Notes he/she get a red panicmessage.

We have tracked that error to the database. The two views is not syncronize between each other. If the user delete mail in the normal view it not update the special database and the message lost handle etc appear.

If a user press F9 and syncronize the two views before he shut down Notes the problem disappear.

Is it possible to inside a lotusscript generate a F9 before the database shut down (i e when the user shut down Notes). That would update the view before it closes and the problem is solved, I think.
0
Comment
Question by:tord_f
1 Comment
 
LVL 7

Accepted Solution

by:
Z_Beeblebrox earned 800 total points
ID: 2695066
Without knowing more about the "special database," it is hard to provide specific instructions. However here is what the script would look like:

Dim workspace As New NotesUIWorkspace
Call workspace.OpenDatabase _
("Server", "database", "view")
Call workspace.ViewRefresh

I'm not completely sure that this will do the trick, but it probably will. This is hard to test since it happens so fast that you can't see if it is working.

Anyways, put that script in the QueryClose event of the mail database, or you could put it in the "special database", in which case you would need to link to the database using the source and doing a source.getview and then refreshing that.

Hope this helps,

Zaphod.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Screencast - Getting to Know the Pipeline
Suggested Courses

772 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