Retrieving changes made by a Java Agent on a document

后端 未结 2 1617
时光取名叫无心
时光取名叫无心 2021-01-23 01:54

I am passing parameters to a Java agent from Lotus Script like this:

Set db = session.CurrentDatabase    
Set doc = db.CreateDocument     
Set uiDoc = workspace.         


        
2条回答
  •  忘掉有多难
    2021-01-23 02:26

    You have to save the doc in your Java code and to re-read your doc in LotusScript after calling your agent.

    It is easier to use an In-Memory Document though:

    LotusScript

    MyAgent.RunWithDocumentContext(doc, doc.NoteID)
    

    Java

    Document doc = agentContext.getDocumentContext()
    

提交回复
热议问题