Datasource filtering by ids

0
I want to filter my datasource in my widget by a list of guid’s. So datasource should load only the entities with my specified id’s.   I read the documentation here https://docs.mendix.com/apidocs-mxsdk/apidocs/pluggable-widgets-client-apis-list-values/#simple-filtering.   But in my case I don’t have a attribute defined, because the Object Id is not selectable as Attribute. How can I filter my datasource by a list of guid’s?    
asked
1 answers
1

Hi Pascal,

To do this filtering, you can create a filter helper entity in the domain model and create an id attribute in it. On the user page, you can call the object you want to filter with the help of xpath inside the filter entity object. You can filter in the Xpath similar to the example I have shown in the image below. I hope it helps. If there are any more questions, I'd be happy to hear

 

Regards
Ridvan

answered