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

Macro wont activate on app opening

hi guys

i have a macro that change the selection color but it only active when i run it from ctrl+m

Screenshot_14.png

but i need to run it each time the app is opened

so i made a trigger that would run it "onopen"

Screenshot_15.png

but it doesn't seem to work like in the picture i tried to call it using name+() or just name

but it doesn't seem to work

any help would be appreciated

12 Replies
tamilarasu
Champion
Champion

Hi Ahmed,

Yes I think so. I haven't tried but I heard that Macros are not working in AJAX client. So you have to find out workaround.

Peter_Cammaert
Partner - Champion III
Partner - Champion III

I'm not a fan of changing the selection color scheme (except for device-related reasons). There are however a few tricks that may be of use to you:

  • You can choose one of the other color schemes in Settings->Document Properties->General->Seleciton Appearance->Color Scheme.
  • The macro you are trying to run is lifted from a recipe in a Stephen Redmond book. In it, he explains what this macro actually does: it stores the color settings in the Settings.ini file in your profile. You can refer to these color settings by selecting the [Custom] scheme in Document Properties list. However, they will only apply to the current user, and AFAIK the colors themselves won't travel with your document.
  • Finally, you can change the selection colors scheme on a server by adding the color settings from the Settings.ini file in your profile to the QlikView Server Settings.ini file. See here for the details.Changing default colors of QlikView Note that this scheme will apply to ALL documents published on your server. Which is to be expected, as it would be extremely confusing if these basic colors would be different in every other document.

As I said before, I'm not a fan of changing the selection color scheme. Compare this to every country selecting their own set of colors for traffic lights. Or even better, rotating them...

Best,

Peter

swuehl
MVP
MVP

Maybe a document extension can do what you want.

http://www.qlikfix.com/2012/05/18/any-colour-as-long-as-its-green/