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 for reaching out to us.
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.
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 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.