Skip to main content
September 7, 2023
Question

Dynamically Changing Record Filter Label

  • September 7, 2023
  • 11 replies
  • 0 views

Hi, I am using a record type for creating the readonly grid, I am trying to change the language of the filter label once the user interacts in the parent interface. As per current design, we cannot pass rule inputs to the record type. I tried refreshing the child interface using a!refreshvariable(), however the problem still persists and label value doesnt change.

11 replies

mathieud0001
Brainy
September 7, 2023

I don't think this can be done properly. Just curious, why do you need to change the label of the filter dynamically?

If you only need a limited set of filters, you could always just create a few filters with different labels but that solution doesn't scale.

mohr1998Author
September 7, 2023

we are changing the language of the filter labels based on the user selection. we have button to change the language from French to English or vice versa.

As per my current design i am storing the updated value of the language to the database and while evaluating the language for filter label , I am reading it from DB. The issue with this approach is , user will have to refresh the webpage unlike the rest of interface.

mathieud0001
Brainy
September 7, 2023

Why not just use userlocale() function to get the current locale instead of storing it in the database?