(Domino Notes)如何将文档从原始 NSF 移动到另一个 NSF? [英] (Domino Notes)How to move documents from the original NSF to another NSF?
问题描述
服务器上有两个NSF,并且两个NSF中有很多文档.
There are two NSF on the server, and there are many documents in the two NSF.
当我将NSF A中的案件划分为特定成员时,是否可以将文档移至NSF B?
When I divide a case in NSF A to a specific member, is there a way to move the document to NSF B?
将案例划分为特定成员时,文档中会有一个字段来显示成员的名称.
When dividing a case into a specific member, there is a field in the document to display the name of the member.
如果可行,如何实现?是复制还是移动?
If it is feasible, how is it achieved? Is it copied or moved?
是否可以共享该方法?
推荐答案
使用Document类的CopyToDatabase方法.这是一个简化的 LotusScript 示例:
Use the CopyToDatabase method of the Document class. Here's a simplified LotusScript example:
Dim targetDb As New NotesDatabase("", "path/target.nsf")
Call doc.CopyToDatabase(targetDb)
为了完成'移动'操作,你只需要在之后删除源文档:
In order to complete the 'move' operation, you just need to delete the source document afterwards:
Call doc.Remove(True)
这篇关于(Domino Notes)如何将文档从原始 NSF 移动到另一个 NSF?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!