A grid with the ‘Show search bar’ property set to ‘Never’ or ‘Always’ cannot have a search bar toggle button. A grid with data source ‘microflow’ cannot have a Search bar toggle button.

0
I am learning Mendix Studio Pro 8.12.4. I want to use microflow as the data source for a Data Grid, but got two errors. The screenshot is The two errors are   A grid with the ‘Show search bar’ property set to ‘Never’ or ‘Always’ cannot have a search bar toggle button. Either remove the button from the grid control bar or change the property. A grid with data source ‘microflow’ cannot have a Search bar toggle button.   I really need the search button and found nowhere to change the property. And I do not know how to solve it now. Can anyone with kindness help me or show me a screenshot for solving it? Thanks a lot in advance.
asked
4 answers
1

Hello meforMendix meforMendix,

 

Likewise the error is stating it is not possible to add the out of the box search function to a datagrid with a datasource microflow.

First thing to consider is if you can change the datasource of your microflow to xpath/database, normally this should be possible, can you maybe explain your use case and explain what you filter exactly in the flow.

If this does not fit, and you would still like to use a filter you can think about creating a non persistant entity that you show on the same page where you put in your conditions and then by the click on a button you relaunch your microflow and apply the conditions.

 

Hope this helps,

 

Good luck!

answered
0

The screenshot of the microflow for the Data Grid is

向Mendix发问(20250424)屏幕截图(1397)2.png

I want to get the list of entity DropInVisit in MyFirstModule with

[yonghuxingming = $currentUser/Name], where yonghuxingming is an attribute of DropInVisit.

Once I used XPath for the Data source of the Data Grid, but an error occurred, the screenshot is

向Mendix发问(20250424)屏幕截图(1399)3.png

Unknown variable of ‘currentUser’.

And I do not know how to solve this problem now.

Thanks a lot in advance.

answered
0

Thanks for your information:

 

You can add a parameter to your page:

image.png

 

And after you can use this parameter in your xpath:

 

image.png

hope this helps;

 

Good luck!

answered
0

Thank you for your reply.

But I am using Mendix Studio Pro 8.12.4,

I cannot find the ‘Parameters’ button in the top bar, the screenshot is

向Mendix发问(20250424)屏幕截图(1400)4.png

And I do not know how to solve this problem now.

Thanks a lot in advance.

answered