I’ve got this problem: There is an action button on a form, which triggers a java agent, which changes some values on the backend representation of the currently opened document.
Now I want to make those changes visble on the frontend document.
I tried all “standard”-function as uidoc.Reload or uiws.ReloadWindow.
When I refresh the view and try to save the front-end document it says “Another copy of this document has been saved, create a conflict…?”
Dim ws As New NotesUIWorkspace
Dim doc As NotesDocument
Dim s As New NotesSession
Dim db As NotesDatabase
Dim ag As NotesAgent
Dim uid
Dim d2 As NotesDocument
Set db = s.CurrentDatabase
Set ag = db.GetAgent("SOAPPush")
Set doc = ws.CurrentDocument.Document
uid = doc.UniversalID
ag.Run(doc.NoteID)
Set d2 = db.GetDocumentByUNID(uid)
doc.SaveOptions="0"
Call ws.CurrentDocument.Close(True)
Call ws.EditDocument(True,d2)