I have a document with a number of computed fields that get their values from an embedded view. When an entry is made in the embedded view, after the underlaying document is saved, the values on the original form need to be updated.
I have looked at the various refresh methods in Lotuscript and cannot get them to do anything to the original document.
How can I get the document that is called by the embedded view to update the form the embedded view is embedded on?
Code samples would be really appreciated.
Subject: Need help refreshing a document
I assume that the fields on the form don’t actually get their values from the embedded view, but, instead, from an @DBLookup of the view that happens to be embedded.
If that is the case, make sure the @DBLookups are using the “NoCache” parameter or the new “ReCache” parameter.
Subject: RE: Need help refreshing a document
You are correct that they are dblookups, but the NoCache option does not work unless the field gets issued a refresh command and that is what I am trying to accomplish.
Subject: Need help refreshing a document after editing an entry from it’s embedded view
I have the same problem, anybody has a way that programmatically gets the focus back on the document that contains the embedded view?
The only way I could do it is with calling an agent after I had saved and closed the document contained by the embedded view.
But I needed a messagebox to get the focus out of the embedded view;
Dim ws As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Messagebox “Update current docoument”,64,“Update document”
Set uidoc = ws.CurrentDocument
Call uidoc.Refresh
Without the messagebox line this code won’t work as the focus remains on the last opened entry in the embedded view.
Any solutions without using a dummy messagebox would be very welcome.