is there a way to get the filter members of a hierarchy with the original capitalization?

Resolved
Michael T asked on May 22, 2022

trying to display a capitalized text of the member of a selected filter (in custom filter dialog)
I can see getting the lowercase version of a member chosen using getFilter(hierarchy)
is there a way to get the selected member(s) with the original capitalization?
For example, I know I can use getMembers to scan through original members one at a time comparing with .lowerCase() to determine which one it is but is there a more efficient way?
 
Thank you,
 

3 answers

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster May 23, 2022

Hello, Michael,

Thank you for reaching out to us.

Flexmonster provides caseSensitiveMembers property of the Options Object. It indicates whether the hierarchies’ members are case-sensitive (true) or not (false). You can set this option to false to ignore the capitalized text.

Please let us know if it works for you. Feel free to contact us if other questions arise.

Kind regards,
Nadia

Public
Michael T May 23, 2022

Thank you. I'm afraid my original question was not clear enough.
 
I'm not trying to ignore capitalized text
instead, I would like to display the correct capitalization for the member.
One way is to loop through all members and compare .lowerCase() to find the original member capitalization, but i'm wondering if there is a more efficient way to do this..
 
thank you
 

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster May 24, 2022

Hello, Michael,

Thank you for the quick response.

Sorry for the misunderstanding. In this case, the best approach would be using getMembers() to get the original capitalized caption, just as you have mentioned.

You are welcome to write to us in case further questions arise.

Kind regards,
Nadia

Please login or Register to Submit Answer