As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
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.