ParameterDocID只获取我的DocumentUniqueID的6位数

问题描述 投票:1回答:1

我从我的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那里得到的信息与runOnServer有关,noteID只接受DocumentUniqueID

由于不同副本中的NoteId更改,我想使用runOnServer(String noteID)执行此操作。我可以使用哪种方式,有另一种方法吗?

javascript lotus-notes lotus-domino lotusscript lotus
1个回答
3
投票

Agent的var noteID = doc.getNoteID() ... var agentResult = notesAgent.runOnServer(noteID) 只接受noteId作为参数,而不接受UniversalId。

所以,将代码更改为

qazxswpoi
© www.soinside.com 2019 - 2024. All rights reserved.