我試圖合併兩個notesdocumentcollections一起在重複控制使用下面的代碼(多米諾8.5.3):重複控制合併notesdocumentcollection
var tempDC:NotesDocumentCollection = resourceDB.getProfileDocCollection("temp");
if (otherImgDC.getCount() > 0) {
tempDC.merge(otherImgDC);
print(otherImgDC.getCount() + ", " + tempDC.getCount());
}
if (techDiagramDC.getCount() > 0) {
tempDC.merge(techDiagramDC);
}
return tempDC;
但打印語句tempDC.getCount()返回0 - 我在這裏錯過了什麼?任何幫助,將不勝感激。
這可能是回收涉及的Domino對象的問題。 – 2012-03-12 05:42:02
它的工作原理是,如果我將現有集合與集合中的某些文檔合併在一起,但不能用於空集合,我甚至嘗試過resourceDB.createDocumentCollection,但仍然是同樣的問題。 – pipalia 2012-03-12 09:55:59