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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to change button color according to sheet selection

Hi all,

I have buttons which are used to navigate between my sheets.

How can I change the color of the button according to the sheet I'm in?

Thanks,

Boris

1 Solution

Accepted Solutions
maleksafa
Specialist
Specialist

using the GetActiveSheetId() you can know what is your current sheet, use it to change the color of the button, go to button properties, background color, base color, calculated: and there you can put for example if (GetActiveSheetId() = 'Document\SH01', Red())

View solution in original post

3 Replies
Colin-Albert
Partner - Champion
Partner - Champion

maleksafa
Specialist
Specialist

using the GetActiveSheetId() you can know what is your current sheet, use it to change the color of the button, go to button properties, background color, base color, calculated: and there you can put for example if (GetActiveSheetId() = 'Document\SH01', Red())

Peter_Cammaert
Partner - Champion III
Partner - Champion III

This is a nice one. It automatically assigns button colors based on the sheet ID. Adjust the INLINE table in the script and add a fourth color. Then on the third sheet, select rightmousemenu->Copy sheet.

TADA!