Solved

Update with F9 automaticly within a form

Posted on 2000-04-07
1
270 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 200 total points
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now