I am trying to merge two notesdocumentcollections together using the following code in a repeat control (Domino 8.5.3):
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;
But the print statement returns 0 for tempDC.getCount() - what am I missing here? Any help would be appreciated.