How to refresh view

Hello,

I have created a frameset as my primary ui for my database which displays multiple views. The data that they display is periodically added from an external source using the Domino COM objects. In order for the user to see the new entries inserted from outside I’ve been using the NotesUIWorkspace::ViewRefresh method with a timer in my database script to refresh the data but unfortunatly this only updates the view which has the focus.

Now I’ve come accross a similar problem with a form which displays external data obtained from COM objects in which I simply called the NotesUIDocument::Refresh method. What I did is simply to keep a reference to the NotesUIDocument object in it’s global code space and with a timer simply call the refresh method. Unfortunatly the UI views don’t have a refresh method.

Is there a similar solution with views ? Maybe changing the select formula on my timer event ? can this be done programmatically ?

Thanks,

Dan

Subject: RE: How to refresh view

You realize there’s an option in the view design to tell it to refresh the view when the data changes? It doesn’t do so instantly, but you might see whether the delay is acceptable.

Otherwise, have you noticed the SetTargetFrame method?

Subject: RE: How to refresh view

Hmm I didn’t know about the option in the view design thanks, but it is under the “Index” section, what does this mean?

The SetTargetFrame method works but not for refreshing, the best thing I have seen is to call NotresUIDatabase::OpenView after my SetTargetFrame call. It works and is relatively transparent other than the fact that the focus is redirected to that frame which is very nasty.