Unplanned
Last Updated: 28 Jan 2021 21:44 by Zac
Mat
Created on: 18 Feb 2020 13:03
Category: Filter
Type: Feature Request
3
Filter expressionPreview template

Hi,

I notice you have added support for specifying the format of expressionPreview fields, which is great when handling dates and numbers, so thanks for that.

However, ideally I need to be able to use a template for the expression preview for certain fields. For example, take the scenario where you are filtering for 'user_id'. Currently I'm using a custom editor to present a drop-down list of user names to pass the user_id to the filter, which works well, but the expression preview looks like:

User Equals '132'

rather than:

User Equals 'Fred Bloggs'

If I could use a template for the expression preview, I could use a function to display the name associated with the user_id.

This is just one example: there are many others where a template would be useful in the Filter Panel expression preview.

1 comment
Zac
Posted on: 28 Jan 2021 21:44
I am also interested in something along these lines.  Additionally, support for Enums in the same way (I may put that in as a separate request since it may be easier to implement).