Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

macro color button with triggers

I created a few buttons that are assigned to different bookmarks.  I would like that I when I click on the button, the color on the button changes to imply that this button selection is "ON" etc.  How can i achieve this?  I understand I can do this in a macro but I'm not very familiar.  Anyone can walk me through this?  Really appreciate this.  Thanks.

1 Solution

Accepted Solutions
Not applicable
Author

If you don't have any selection boxes and rely only on bookmarks for selections then you don't need any macros. You can set a variable for the current bookmark and use an expression for the color.

View solution in original post

11 Replies
Not applicable
Author

Here is my test file. 

Filename: testbutton.qvw (123 KB)

Location: http://filelink.nam.nsroot.net/FileLink/GetFile.aspx?id=E2280EF4-F61A-467C-B844-311191BEDB7E

(Note: This file will not be available for download after 24 Nov 2011)

nathanfurby
Specialist
Specialist

Your link is not working.

Not applicable
Author

Here is my test file.  really need help.  Thank you.

m_woolf
Master II
Master II

If you search for "macro button color", you will find an answer.

nathanfurby
Specialist
Specialist

I don't think the normal examples of button colour changes will apply here.  The difficulty exists because you want to show that a certain bookmark has been selected - but if a user changes a selection on any of the filters then that 'bookmark' is no longer technically selected.

I'm not sure how you would do this, other than to set the colour in the action of the button itself and then a trigger event to reset the colour of all the buttons everytime the user made any kind of selection.

Not applicable
Author

The report I'm displaying does not contain 'selection box' and so is hard for the viewer to know what is selected or what data is currently dispalying.  So that is why i want the buttons to either be highlighted or color in some way to show the button is clicked or 'ON'.  The sample data i provided is very simple.  The actual report contains more complicated selections.  I searched and combed throught the forum but I wasn't able to find one that applies to me.  And also im not very well versed in VSB.  Not sure when and where to set the variables etc.  Samples would be great. 

nathanfurby
Specialist
Specialist

I can't think of a good way to do this with Bookmarks. Sorry.

Not applicable
Author

If you don't have any selection boxes and rely only on bookmarks for selections then you don't need any macros. You can set a variable for the current bookmark and use an expression for the color.

Not applicable
Author

For some reason I was fixated on macros.  This is so much easier.  Thank you vhuynh!