10-11-2020 05:11 AM
documents = repository.query("SELECT * FROM " + docType , "0", pageIndex, null,
null, null, null);
documents.getResultsCount();
if i inquire for Doc Type not fount in my nuxeo engine this is documents.getResultsCount() give me randoum number
/>
please advice
Thanks
10-11-2020 06:32 AM
Hello,
Your question is not really clear: If I get is well, you're saying that the number of results is a random number when the document type is not set properly?
I would say to check if the document type exists before sending the query. Then, usually these kind of requests looks like SELECT * FROM Document WHERE ecm:mixinType != 'HiddenInNavigation' AND ecm:isProxy = 0 AND ecm:isVersion = 0 AND ecm:isTrashed = 0 AND ecm:primaryType='<my_custom_type>
to avoid listing trashed documents or proxies.
Thx
10-11-2020 07:02 AM
Thanks it worked successfully
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.