Refreshing view between updates

In have a long running process in a form which creates several new entries which can be seen in an embedded view. Can I update the view every time a new entry is created so the user can see progress? I have tried uidoc.Refresh and workspace.ViewRefresh but the view is only updated when the entire process is completed? Any suggestions on how to do this?

Rgds

Bertrand

Subject: Refreshing view between updates

I had a similar case, I put the workspace.viewrefresh code in an agent and then call this agent by ToolsRunMacro command every time the document is saved. It works for me.

You might also try reloading the document after viewrefresh

Subject: RE: Refreshing view between updates

Thanks for the suggestions! I tried uidoc.Reload but it does not refresh the embedded view. It wouldlike to try the other method but the process that I am running is written in Lotus Script and ToolsRunMacro is a formula command. Any suggestions on how to overcome this?

Rgds

Bertrand

Subject: RE: Refreshing view between updates

maybe you could use the RunAgent method of NotesAgent class

does the view get refreshed if you press F9?

Subject: RE: Refreshing view between updates

Yes, it gets refreshed on F9. The NotesAgent class has a Run method but it does not support UI classes. I also tried using a keyboard replay to simulate F9 but thta did’n t work either. So I am stuck - it does not seem to be possible to do this using Lotus Script.

Rgds

Bertrand

Subject: RE: Refreshing view between updates

yes, it’s quite a hassle…

One more thing I can think of is that when an update is done, close the document, refresh the view and open it within the code (is application in your case)