Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Not applicable

Activating theme with macro

Hi,

    I need to obtain the theme with the help of macro using button but at the same time its not deactivating the current theme(I need to obtain the active caption color while clicking the button instead it showing the inactive caption color)Can any one help!!

regards,

guru

6 Replies
dvqlikview
Honored Contributor II

Activating theme with macro

Guru - Please can you post the QV document on what you worked so far? I can try this one for you.

Cheers - DV

Not applicable

Re: Activating theme with macro

Hai,

         Ya sure , I have attached my qvw file and i need to obtain the result by clicking the button  to get the active caption theme color..

Regards,

Guruprasath M

dvqlikview
Honored Contributor II

Activating theme with macro

Hello Guru,

I am little confused here. Do you want to apply a theme on button click? I mean add an externally saved theme to current object and remove the theme with another button. Is this right?

Thanks - DV

Not applicable

Activating theme with macro

Hi DV,

          No from the themes folder only i am picking one theme but while clicking the macro button , it shows the inactive caption colour...I need to obtain the active caption color while i am clicking the button alone!

Regards,

Guru

dvqlikview
Honored Contributor II

Re: Activating theme with macro

Hi Guru,

What you have done is correct. I had tested the same code on my system by using different .QVT theme and it works without any problem. I mean it applies the theme to both active & inactive caption. However, try changing your colors on active & inactive captions before trying to apply the theme. I had changed both the colors in white and then applied the theme (which are red, blue) and it works without any issue.

Good luck!

Cheers - DV

Not applicable

Re: Activating theme with macro

Hi Dv,

               Thanks dude! Its working in the same procedure what you have explained but is there any possibilites if i click the same button and the theme changes to white color with the same code(Both active and inactive caption)..?  i.e Deactivating its theme and again applying?

Regards,

Guru