Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当通过按钮保存表单时,我还想使用“MSG”表单创建一个新文档,其中包含消息标题、正文和收件人的字段。起初我认为可能只使用 JS 库,但现在我不确定。打开一个绑定到该文档表单的未渲染 XPage 并将值继承到其中会怎么样?
我希望我能正确理解您的问题:尝试在 XPage 的数据源(例如 document1)postSave 事件中插入这样的代码:
var doc:NotesDocument=database.createDocument(); doc.replaceItemValue("Form","msg"); doc.replaceItemValue("title",document1.getItemValueString("title")); ... doc.save(true);