lotus那些代理函数可以生成和操作表单

不好意思,不是生成表单,是生成表单关联文档
2025-02-24 03:04:53
推荐回答(2个)
回答1:

dim session as new notessession 'new session
dim db as notesdatabase 'notes database object
dim doc as notesdocument 'notes document object
set db = session.currentdatabase 'define currently opened database
set doc = db.createdocument() 'create new document in current database
doc.form = "form_name" 'related form name of the new document
doc.field = "field_value" 'field value in the new document
call doc.computewithform(false, false) 'compute all computed field in form of the doc
call doc.save(true, true) 'save the change above in the doc

回答2:

doc.form = 表单名称
即可