Support

Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics
Ben May

Turning of individual columns smart filter based on users role.

Hi,

Can you point me to an example in the documentation where I can programmatically remove or set as ‘no/off’ for the “smart filter” and/or “filter” for a specific column? I want to do this based on the logged in user’s role.

Thanks

Anthony

2 years, 8 months ago
Stefan van den Dungen Gronovius
Developer

We have no documentation on how to set filtering programmatically.
Although this is technically possible with some custom middleware, I’ll need to investigate this option myself.
Aside from that, I would not recommend this, since we don’t have any support on that.
My suggestion is to use column sets and default filters to set this up.
You could use the column set feature to create a specific set for different roles
https://docs.admincolumns.com/article/72-how-to-create-column-sets

The next step is to create some global saved filters for that set.
https://docs.admincolumns.com/article/73-how-to-use-saved-filters

Once you have a global saved filter, you can attach them to a column set, to have them applied automatically when visiting the column set as a specific role.
https://docs.admincolumns.com/article/73-how-to-use-saved-filters#default-filters

2 years, 8 months ago

You must be logged in to reply to this topic.