Refresh of frontend-document

Hello forum,

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…?”

Any suggestions are greatly welcome.

Regards

Christian

Subject: refresh of frontend-document

Hi,

Try to reopen document using its UNID.

Konrad

Subject: RE: refresh of frontend-document

It tried it with this code:

Sub Click(Source As Button)

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)

End Sub

But the changes still do not show up…

Subject: RE: refresh of frontend-document

Hi,

Do You save document changes made in agent?

Konrad