Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

List Box

I have a list box which contains A and B. A represent compliment and B represent complaint

So when i select either of them i want that they are highlighted by different color

lets say

when i select A it should be highlighted by green and when i select B it should be highlighted by red.

thanks in advanceUntitled1.png

15 Replies
Anonymous
Not applicable
Author

How about the attached that does it without extensions or macros ?

Instead it frigs a Straight Table to act like a List Box and sorts the colours using the Dimension Background  / Text Color

Not applicable
Author

If you do not want to use extensions, then you can do the following-

1. Right Click listbox and open properties.

2. Goto presentation tab and click on background

3.click color and apply expression in calculated as follows-

if(listboxname=complaint,red(255),if(listboxname=compliment,green(255)))

and make sure to change selection style override to other than qlikview classic.

And you may or may not click on HIDE EXCLUDED.

This way you will come to know whether a complement is selected or complaint else use extensions.

Attaching a example

Cheers Saurabh Kabra

Not applicable
Author

thanks everyone.

I can use extension now and i am able to change green into blue.

What and where should i make changes in Nogreen.CSS file so that i can change blue into some other color, if that is possible.

ashfaq_haseeb
Champion III
Champion III

ashfaq_haseeb
Champion III
Champion III

Hi,

have a look at below post.

Embedding web objects - basic questions

Regards

ASHFAQ

engishfaque
Specialist III
Specialist III

Dear Deepak,

Kindly, find attached updated css file "Nogreen.css".

You can change it according your requirement. Here are the class names where you have to make changes in CSS file.

Replace "background-color:#0099ff;"  to "background-color: #ff0000;"

.QvSelected {

    background-color: #ff0000;

    color: #FFFFFF;

}

.QvDragRect {

    background-color: #ff0000;

    cursor: pointer;

    opacity: 0.5;

    padding: 0;

}

Please let me know, if need be.

Kind regards,

Ishfaque Ahmed