A user wants her own specific filter and sort setting for a datagrid.

0
Is it possible set a datagrid’s sorting and filtering defaults per user. So John will see a differently sorted and filtered list compared to Jane.
asked
3 answers
2

Hi!

In an 'Search’-entity associated to de user you can fill the fields you want and give the possibility to the user to change this fields.

Then you build a Datagrid within a data view (with search-entity) with as Data Source: Microflow. As input in this microflow you can give the Search-Entity.

Maybe a little vague, but I hope you understand. :-) 

answered
1

Hi Tim,

It sounds like the Grid Filter Extension widget can be useful for storing past searches. You could use a constraint to the entity that stores the search filter settings to the current user to make history user specific.

https://appstore.home.mendix.com/link/app/49291/Appronto/Grid-filter-extension

For storing sorting, in the past I’ve used the datagrid extension widget. In the appstore its not being maintained anymore but on github I’ve been using this version that has been working well with Mx7.

https://github.com/tieniber/DataGridExtention

 

Hope this helps!

answered
-1

A  quick (dirty)  way is to have several grids, visible depending on a  boolean var.

example : edit condition for visible for John = true 

etc…
 

careful if you have several association or a complex xpath.  might slow the refresh page.

 

 

 

answered