I saw other people having this same issue, but none recently so I’m hoping that there is a recently discovered solution to this problem!
I have an embedded view on a parent document. The embedded view contains the response documents called ‘Comment’. If I create a new parent document, with a new Comment response to it, the embedded view on the parent isn’t refreshed unless I F9 or click on a keyword that does a refresh on the parent document.
This is for notes client only, not web.
How can I get focus back on the parent document and do a refresh so the users don’t have to click F9?
P.S. if we create subsequent Comment documents, the embedded view is updated immediately.
TIA
Subject: Refresh Embedded view
If you have a button that saves and closes the form, you can add:
@PostedCommand([ViewRefreshUnread])
That may do the trick in your case.
Subject: Refresh Embedded view
If its script, a simple workspace.ViewRefresh does it for me.
The code below gets the handle of the view embedded in your noteuidocument and does some manipulations on the selected documents in the embedded view.
Thereafter, it refreshes the embedded view to show relevant documents only.
Sub Click(Source As Button)
Dim ws As New NotesUIWorkspace
Dim uivw As NotesUIView
Dim coll As NotesDocumentCollection
Dim doc As NotesDocument
Set uivw = ws.CurrentView
Set coll = uivw.Documents
Set doc = coll.GetFirstDocument
While Not doc Is Nothing
doc.strStatus = "Completed"
Call doc.Save(True,False)
Set doc = coll.GetNextDocument(doc)
Wend
Call ws.ViewRefresh
End Sub