Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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.
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.
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)
Your link is not working.
Here is my test file. really need help. Thank you.
If you search for "macro button color", you will find an answer.
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.
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.
I can't think of a good way to do this with Bookmarks. Sorry.
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.
For some reason I was fixated on macros. This is so much easier. Thank you vhuynh!