Quantcast
Channel: SCN : All Content - SAP HANA Cloud Platform Developer Center
Viewing all articles
Browse latest Browse all 3285

HANA HCP CMIS folder getChildren limted to 100 items

$
0
0

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


Viewing all articles
Browse latest Browse all 3285

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>