Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Chart (Listbox- highlight green when selected)


Hello,

I have got in my QVW a couple of list boxes created based on charts. The client required when anything is selected in the list, those must be highlighted green.

For the small list boxes I could figure a way.... In the Properties, the node inside the Dimension I have choosen Text Color, and wrote the following expression:

if(Column1= 0, green(),

if(Column1= 1, green(),

if(Column1= 2, green(),

if(Column1= 3, green() ,

if(Column1= 4, green(),Black()

)))))

The problem now, is that have got a list box with several values (up to 100s) and my question is:

Is there way to achieve the same result without having to do all this work for all values in the list?

Ive attached a QVW for an example.

Thank you!!!

1 Solution

Accepted Solutions
antoniotiman
Master III
Master III

Hi Iuri,

In Your Example.qvw, in Text Color try this

=If(Match(DIAGNOSTIC_CODE,Concat(DIAGNOSTIC_CODE,',')),Green())

Regards,

Antonio

View solution in original post

5 Replies
antoniotiman
Master III
Master III

Hi Iuri,

In Your Example.qvw, in Text Color try this

=If(Match(DIAGNOSTIC_CODE,Concat(DIAGNOSTIC_CODE,',')),Green())

Regards,

Antonio

awhitfield
Partner - Champion
Partner - Champion

Hi Iuri,

why not just use a standard list box and customise the appearance?

See Attached

HTH Andy

Not applicable
Author

Hi Andrew,

Thanks for your help.

That was my first ideia, but by using the standard listbox it wont be possible to change the font color when selected.

Not applicable
Author

Thats what I was looking for, thank you!

awhitfield
Partner - Champion
Partner - Champion

Got it now! Glad it's sorted

Andy