So the document list component https://www.alfresco.com/abn/adf/docs/content-services/components/document-list.component/, have a [where] property which is able to filter the data in the list.
When I try the example:
[where]="'(isFolder=true)'"
it works perfectly.
My question is regarding the syntax, how do I filter the data by a property on the nodes.
I want to do something like:
[where]="'(properties['myprop']='some value')'"
According to the docs for the documentlistcomponent pointing to the node docs: https://github.com/Alfresco/alfresco-js-api/blob/development/src/api/content-rest-api/docs/Node.md it should be possible.
I have also looked into the API explorer https://api-explorer.alfresco.com/api-explorer/#!/nodes/listNodeChildren but can't figure out the syntax.
Thanks in advance.
I’m fairly certain that the getChildren REST API does not support properties in the where parameter, but I could be wrong. I am checking on this for you.
I am not quite sure what you are trying to acheive, but I suggest you look into leveraging the Search REST API would give the level of control you looking for. If you need to start filtering by complex queries - the Search API is the way to go.
Discussions, help and advice about the Alfresco Development Framework.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.