As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
Hi,
This is the endpoint code for a distinct by user :
function onRequest(request, response, modules) { var userId=modules.requestContext.getAuthenticatedUserId(); var aclQuery = {"_acl":{"creator":userId}}; modules.collectionAccess.collection(request.body.collectionName).distinct(request.body.columnName, aclQuery, function (err, docs) { if (err) { modules.logger.error('Query failed: '+ err); } else { response.body = docs; response.complete(200); } }); }
fabreax
Is it possible to make a "select distinct(column)" using your data store ?
(the features in MongoDB : http://docs.mongodb.org/manual/reference/method/db.collection.distinct/)
Thank you.