作一个编辑域(zgyj)和一个计算域(Dzgyj)以及一个按纽或是热点,编辑域用来输入文本,在按纽或是热点处调用代理,其中完成你要求的部分代码如下:
dim s as new notessession
dim curdoc as notesdocument
set curdoc=s.documentcontext
dim yjitem As notesitem
If Trim(curdoc.zgyj(0))<>"" Then
Set yjitem = curdoc.getfirstitem("Dzgyj")
For i=0 To Ubound(curdoc.zgyj)
Call yjitem.appendtotextlist(curdoc.zgyj(i))
Next
curdoc.zgyj=""
End If
你点击该按纽,就将输入值写到计算文本域中去了.
dim s as notessession
dim workspace as notesuiworkspace
dim uidoc as notesuidocument
dim doc as notesdocument
dim newdb as notesdatabase
dim newdoc as notesdocument
set s = new notessession
set workspace = new notesuiworkspace
set uidoc = workspace.currentdocument
set doc = uidoc.document
set newdb = s.getdatabase(s.servername,"xxx.nsf")
set newdoc = newdb.createdocument()
newdoc.form = "xxx"
newdoc.text = doc.text
call newdoc.save(true,false)