Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Use buttons with variables and color coding

Hi all.

I would like to use buttons with variables and color coding. When I click on one button should the button change color and if there are actions like "select in field" it should be active. So if I click on another button the button should get back to the "in-active color".

Attached a example that does not work that well.   

Thanks in advance!

8 Replies
Clever_Anjos
Employee
Employee

Why don´t you add more set variable actions according to your needs?

CELAMBARASAN
Partner - Champion
Partner - Champion

PFA,

marcus_malinow
Partner - Specialist III
Partner - Specialist III

Is the attached of any use?

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

See attached example


talk is cheap, supply exceeds demand
Not applicable
Author

If you do clear the last clicked button is still active. Do you have a solution for that?

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Add a Set Variable action to the OnAnySelect document trigger to set vColor to 'White' (or anything that's not red, green or blue) when no selections are made : if(len(getcurrentselections())=0,'White',vColor)


talk is cheap, supply exceeds demand
Not applicable
Author

Could you please show it in an example?

ngulliver
Partner - Specialist III
Partner - Specialist III

Hi, Bjorn.

Look at this blog on buttons.

It has working examples you can copy that will change colour when used.

http://www.quickintelligence.co.uk/qlikview-buttons/

Regards,

Neil