Hi,
You can achieve this in Mendix using a helper (search) entity + XPath filtering, which is the standard and most flexible approach.
1. Create a Search Helper entity
Example: SearchHelper with attributes:
This entity will hold user input.
2. Use a Data View (non-persistent object)
SearchHelper as non-persistentBind your input fields (text box, dropdown, date picker) to this object.
3. Filter results using XPath in List View / Data Grid
Set XPath like:
[ (Name = $SearchHelper/Name or $SearchHelper/Name = empty) and (Status = $SearchHelper/Status or $SearchHelper/Status = empty) ]
This supports:
4. Add Search button (nanoflow/microflow)
5. Add Reset functionality
You can also use:
The standard Mendix pattern is to use a non-persistent search helper entity + XPath filtering, which allows flexible multi-condition search and easy reset functionality.
Consider using the DataGrid2 or Gallery widgets, which offer built-in functionality for standard search across multiple attributes and support basic filters.
If you wish to create a custom solution, I recommend using Non-Persistable Entities (Helpers) to construct an XPath query for the relevant entities.
https://docs.mendix.com/appstore/modules/data-grid-2/#filters
https://docs.mendix.com/appstore/modules/gallery/#filtering