Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Tool_Tip
Contributor III
Contributor III

Custom theme issue

Dear all,

As mentioned in below reference url i have applied the custom theme ID inside js file of my mashup page but I am getting below error in dev tools as well theme is not getting applied in the mashup page as well:

1) https://community.qlik.com/t5/Integration-Extension-APIs/Themes-Not-working-on-Qliksense-Mashup/td-p...

2) https://community.qlik.com/t5/Integration-Extension-APIs/Retrieve-the-currently-applied-theme-on-Mas...

3)https://community.qlik.com/t5/Design/An-Introduction-to-the-Theme-API/ba-p/1464592

 

Tool_Tip_0-1717653957746.png

Kindly help.

Labels (1)
11 Replies
marksouzacosta
Partner - Specialist
Partner - Specialist

All right @Tool_Tip,

Is it in Qlik Cloud? If so, the change below worked for me in some extensions.
In your extension files, replace '-' with '_' in every single folder and file. Be careful to rename everything include the code inside your scripts.

A few weeks later Qlik made an update in Qlik Cloud that broke some extensions and that is how I fixed the ones I needed.

Read more at Data Voyagers - datavoyagers.net
Tool_Tip
Contributor III
Contributor III
Author

Dear Mark,

Thank you for your information.

It is enterprise. 

thomaspessato_
Partner - Contributor
Partner - Contributor

@Tool_Tip Hey! We've created tons of mashups here and we often use qlik.theme.apply, and not app.theme.apply. Did you try qlik.theme.apply?

Cheers

Tool_Tip
Contributor III
Contributor III
Author

Hi Thomas,

 

I have tried applying theme using qlik.theme.apply too

Tool_Tip_0-1718078613250.png

 

thomaspessato_
Partner - Contributor
Partner - Contributor

What is that id you're using? You should use the theme name, for example.

I have a theme here and I apply it like this:

qlik.theme.apply('nightmode')

I think you're passing the wrong parameter to the apply function

Tool_Tip
Contributor III
Contributor III
Author

Yes. I tried with theme name as below too:

Tool_Tip_0-1718165807747.png

 

Tool_Tip
Contributor III
Contributor III
Author

I have also noticed that I am getting below messages:

Tool_Tip_1-1718166537078.png

But theme is working fine in qliksense

thomaspessato_
Partner - Contributor
Partner - Contributor

Can you send the theme ZIP file? I can check it for you

Tool_Tip
Contributor III
Contributor III
Author

Hi Thomas,

File attached,