gpt4 book ai didi

XPages - SSJS - 获取所有配置文件文档

转载 作者:行者123 更新时间:2023-12-01 06:15:09 25 4
gpt4 key购买 nike

通过 LotusScript,我可以使用 Set notesDocumentCollection = db.GetProfileDocCollection() 来获取数据库中所有配置文件文档的集合。我想使用 SSJS 做同样的事情。但是,database.getProfileDocCollection(profileName) 要求我使用特定的配置文件名称。在 SSJS 中有什么方法可以获取数据库中所有配置文件的集合(就像 LotusScript 的情况一样)?

最佳答案

您可以通过以下方式获取所有个人资料文件

  var dc:NotesDocumentCollection = database.getProfileDocCollection(null);

只需将null 设置为参数。使用 Domino 8.5.3 FP6 和 9.0.1 FP1 对其进行了测试。

关于XPages - SSJS - 获取所有配置文件文档,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27151685/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com