Changed Items from Postsave not in View

Hi,

in PostSave event, i’m performing some complex operations on backend document and save it again. Some items are changed during this.

The view after closing the document is not showing the actual values of these changed items. They seem to be the state before PostSave operations. When i press F9 the actual values are displayed.

I think they are cached in a special way for the view. How can i achieve to update the cache in Postsave (Lotusscript).

Thanks

Uwe

Subject: The solution …

… is uiview refresh at the end of Postsave:

Call doc.Save(True,False)

Dim uiws As New NotesUIWorkspace
Call uiws.ViewRefresh

End sub

Thanks Stuart an Bill

Subject: If you are changing the source document in the Postsave

If you are changing the source document in the Postsave then you will need to be very careful that you do not create Save/Rep conflicts.

Having said that as was previously suggested calling the view.refresh method might solve the problem. However, depending on the nature and volume of changes this could cause a fairly serious performance hit.

I would look into putting it into the querysave, but that might not be possible.

Subject: refresh

I think that the view is getting updated after the save, but before your postsave code runs. Perhaps the notesview.refresh method will help? Put it at the end of your Postsave code.

If that doesn’t work, you could also experiment with notesuiworkspace.viewrefresh.