This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Jun 12, 2015, 11:36 AM
27 Posts
topic has been resolvedResolved

Changed Items from Postsave not in View.

  • Category: Domino Designer
  • Platform: All Platforms
  • Release: 9.0.1
  • Role: Developer
  • Tags: View
  • Replies: 3

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

 

 

Jun 12, 2015, 12:16 PM
59 Posts
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.

Jun 12, 2015, 5:54 PM
31 Posts
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.

Jun 15, 2015, 1:24 PM
27 Posts
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 


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal