Hi All,
I'm using the CMIS Document Service to store several files in one folder.
But when I try to get the folder children with the "getChildren" function it gets only the first 100 entries (my folder contains more or less 400 files).
Is there any way to avoid this limitation?
Here my code:
var docService = $.import("sap.bc.cmis", "cmis"); var session = docService.cmis.createHANAXSECMSession({ destination : $.net.http.readDestination("project.destination", "ecm") }, { repositoryName : "example", repositoryKey : "example" }); var message = ""; try { session.init().then(function(repInfo) { session.getObjectByPath("/MyFolder").then(function(folder) { if (folder.isFolder()) { folder.getChildren().each(function(child, pos) { if (child.isDocument()) { message += child.getName() + " [Document]\n"; } }); } }) }); $.response.contentType = "text/plain"; $.response.setBody(message); $.response.status = $.net.http.OK; } catch (error) { $.response.contentType = "text/plain"; $.response.setBody("Error " + error.name + ": " + error.message + "\n"); }
Thanks in advance.
Gennaro