ÄÚÈÝ·¢²¼¸üÐÂʱ¼ä : 2025/12/22 0:32:03ÐÇÆÚÒ» ÏÂÃæÊÇÎÄÕµÄÈ«²¿ÄÚÈÝÇëÈÏÕæÔĶÁ¡£
ʹÓÃLotusScript»ñÈ¡¶àÖµÓòµÄÖµ
ÔÀí£ºÎĵµÖеÄÓòÖµÊÇÊý×éÐÎʽµÄ ¡£¶àÖµÓòµÄÖµÀàËÆÓÚÒ»ÐжàÁеÄÊý×é,ϱê´Ó0¿ªÊ¼¡£ ¼Ù¶¨ÓòÃûΪEmployee£¬ÀàÐÍΪ¶àÖµÎı¾Óò£¬ÎĵµÖдËÓòµÄֵΪ:james,robin,alfred¡£ ¼Æ»®Ê¹ÓÃLSµÄµÃµ½·µ»ØÖµÎª£ºjamesrobinalfred¡£
·½·¨1¡¢Ö±½Ó»ñÈ¡
strEmployee = doc.Employee(0) +doc.Employee(1) +doc.Employee(2) ·½·¨2¡¢Ê¹ÓÃEvaluateÉùÃ÷
Dim strEmployee AsVariant
Const NotesMacro$ = \ strEmployee = Evaluate(NotesMacro$,doc)
MsgBoxCStr(strEmployee(0))
·½·¨3¡¢Ê¹ÓÃGetItemValue·½·¨
Dim tname AsVariant
tname = backdoc.GetItemValue(\) MsgBox tname ForAll o In tname
MsgBoxCStr(o)
EndForAll
·½·¨4¡¢×ª»¯ÎªÊý×é´¦Àí
Dim i,j AsInteger i = 0
arrEmployee = doc.GetItemValue(\) For j=LBound(arrEmployee) ToUBound(arrEmployee) MsgBoxCStr(arrEmployee(i))
i=i+1
Next
------------------Àý×Ó--------------
Dim WebStartDb As NotesDatabase 'ϵͳÆô¶¯Êý¾Ý¿â Dim LinkDoc As NotesDocument 'ϵͳÆô¶¯¿âÖеÄÁ´½áÎĵµ
Set WebStartDb=s.Getdatabase(\, \)
Set LinkDoc = WebStartDb.GetDocumentByUNID(backdoc.DocID(0)) ¾ÝÁ´½áÎĵµID´ÓϵͳÆô¶¯¿âÖÐÈ¡Á´½áÎĵµ IfNot LinkDoc IsNothingThen
Dim arrEmployee AsVariant
'¸ù
Dim strTComm3Name AsString Dim z,j AsInteger z = 0
strTComm3Name=\
arrEmployee = backdoc.GetItemValue(\) For j=LBound(arrEmployee) ToUBound(arrEmployee)
'MsgBox \£º\
strTComm3Name= strTComm3Name + CStr(arrEmployee(z))+\ z=z+1
Next
'MsgBox \£º\ EndIf
LinkDoc.IsTCommm=strTComm3Name Call LinkDoc.Save(True,True)