When a user updates a view (ie adds a document) other users don’t immediately see the change without manually refreshing or making some modification/add of their own,
I could run a lotus script agent every 5 minutes to refresh the views but this doesn’t appear to be a good or timely solution.
Any recommendations on how to get views to update more frequently without user intervention?
Subject: Refreshing views for all users - quickly!
Skip that part about a LotusScript agent every 5 minutes - that doesn’t work! What is the quickest interval that I can have a view refresh with no interaction by a client? I don’t need realtime - but something better than every 15 minutes must be possible? Yes?
Subject: RE: Refreshing views for all users - quickly!
Jeffrey,
If views are set to refresh automatically then other users who are already in a view will get the little blue reload arrow and can click it (F9) to refresh the view immediately.
If they switch views or open the db then it’ll refresh immediately.
So I imagine you have some kind of manual indexing set … and perhaps this is not appropriate given your concern for faster refreshing …
2c,
raphael
Subject: RE: Refreshing views for all users - quickly!
I’m assuming you set the view property to refresh the view automatically. I’m not sure what the delay is here. In addition I usually force a refresh when closing/saving a document (if I have some LS running anyway) to be sure that the user making the change can see it right away. That should decrease the time for other users as well.
Subject: RE: Refreshing views for all users - quickly!
Not sure what exactly you’re needing…how would every 5/10/15 minutes help???
If users are depending on new information in the view before they can take action…even the following NotesTimeer example might not help!
Problem
How can you periodically refresh a View programmatically without having to press the [F9] key?
Content
The NotesTimer class can be used to periodically trigger a call to the ViewRefresh method (of the NotesUIWorkspace class). Add the following code to views (Declarations) and Postopen event:
(Declarations)
Dim viewTimer As NotesTimer
Dim ws As NotesUIWorkspace
Sub refreshView(Source As NotesTimer)
ws.ViewRefresh
End Sub
Postopen
Set ws = New NotesUIWorkspace
Set viewTimer = New NotesTimer(10)
On Event Alarm From viewTimer Call refreshView
In the above example, the View will be refreshed every 10 seconds.
Subject: RE: Refreshing views for all users - quickly!
This is what I missed. Thanks very much for your response. Thanks to all who responded. The NotesTimer class will do what I need.