04-24-2014 05:03 AM
var query = "…….";
var cmisConnection = cmis.getConnection();
var cmisSession = cmisConnection.getSession();
var results = cmisSession.query(query, false);
for(var res in results.iterator()) {
var nodeRef = res.getPropertyValueById('cmis:objectId');
var node = search.findNode(nodeRef);
// …. rest of code….
}
Cannot find function getPropertyValueById
var nodeRef = res.getPropertyValueById('cmis:objectId');
var node = search.findNode(nodeRef);
04-24-2014 11:18 AM
for(var res in results.iterator())
var iterator = results.iterator();
while(iterator.hasNext()) {
var res = iterator.next();
var name = res.getPropertyById('cmis:name');
// which is in the form of:
// Property [[id=cmis:name, display Name=Name, local name=name, query name=d.cmis:name, values=[blog.html]][extensions=null]
var values = name['values'];
var value = values.get(0);
// …. then the rest of the code….
}
Tags
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.