How to enable search and sorting in a microflow-based Data Grid 1 in Mendix?

0
My Data Grid 1 uses a microflow as the data source. How can I add search and sorting functionality to it?
asked
5 answers
0

Hi Jeff,

 

Please refer to below post 

Mendix Community - Question Details

 

Regards

answered
1

Hello Jeff,

Microflow based datagrid1 doesn't provide search feature, you can try with other widgets , for sorting in MF you can use sort list operation.

image.png

answered
0

Hi Jeff,

For sorting -> Open your DataSource microflow -> Double click on your retrieve entity at the left-bottom you can see the sorting -> click there & sort accordingly.

 

 

For Searching-> You can make your custom filters

answered
0

Hi Jeff,

Sorting logic you can write inside the microflow and return the list.

But if you want to have a column wise sorting and searching, need to implement with custom code. it can not be done with in built data grid1 features.

We have implemented the same for one of the usecases with a Xpath module. and wrote custom microflows for sorting and searching.

 

Below is the link for Xpath module you can have a look

https://marketplace.mendix.com/link/component/120424

 

answered
0

Hi Jeff, When a Data Grid uses a microflow as its data source, Mendix disables built-in search and sorting. To add these features:

  1. Add input parameters to your microflow for search keywords and sorting options.

  2. Implement filtering and sorting logic inside the microflow using XPath constraints and the microflow’s sort action.

  3. Add UI controls (e.g., search box, sorting dropdown) on the page bound to these parameters.

  4. Reload the microflow and refresh the Data Grid when users change search or sorting inputs.

This way, you manually handle search and sorting while keeping the Data Grid powered by your microflow.

 

Easier Alternative (Recommended):

 

1. Column Filters (Text Filters, Dropdown Filters, etc.):WORK even when using a microflow as the data source.

 

2. Data Grid 2 allows per-column filtering via its built-in column filters, and these are available even with microflow data sources.

 

answered