【发布时间】:2019-04-04 13:45:53
【问题描述】:
我正在从我的 Javascript 应用程序调用特定的 IBM Notes 代理。从 Javascript 到 Notes 代理的调用使用参数进行。此参数是通用 ID。
不幸的是,我的代理只获得了我的通用 ID (DocumentUniqueID) 的 6 位数字。但我想拥有我的 UniversalID 的全长。缺少什么,有什么想法吗?
我的 Javascript:
//more code before....
var UID = new String
UID$ = doc.getUniversalID()
// notes agent
var notesAgent = db.getAgent("NameOfMyNotesAgent");
// execute notes agent
var agentResult = notesAgent.runOnServer(UID$)
如果我输出我的 UID,它是通用 ID 的全长。这不是问题。
我的 Notes 代理 (NameOfMyNotesAgent):
Dim agent As NotesAgent
Dim sess As New NotesSession
Dim db As NotesDatabase
Set db = sess.CurrentDatabase
Set agent = sess.CurrentAgent
Dim docUID As String
docUID = agent.ParameterDocID
'Display Notes document UID
Print "******************************"
Print "Notes Document UID: " & docUID
Print "******************************"
' I only get the last 6 part of the DocumentUniqueID, not the full one. Why?
编辑:
我从 Knut Herrmann 那里得到信息,这与只接受 noteID 的 runOnServer 有关。
由于不同副本中的 NoteId 更改,我想使用 DocumentUniqueID 执行此操作。我可以使用哪种方式,有其他方法吗?
【问题讨论】:
标签: javascript lotus-notes lotus-domino lotusscript lotus