<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Chaning Qlik Sense Mashup's theme? in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Chaning-Qlik-Sense-Mashup-s-theme/m-p/1363736#M7936</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to change the default chart colors to make them fit to our client colors, but we cant seem to find help on how to implement it on a mashup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone ever done this? For example, setting Helpdesk's mashup theme to Highvis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Jun 2017 09:04:06 GMT</pubDate>
    <dc:creator>dhdezrino</dc:creator>
    <dc:date>2017-06-27T09:04:06Z</dc:date>
    <item>
      <title>Chaning Qlik Sense Mashup's theme?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Chaning-Qlik-Sense-Mashup-s-theme/m-p/1363736#M7936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to change the default chart colors to make them fit to our client colors, but we cant seem to find help on how to implement it on a mashup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone ever done this? For example, setting Helpdesk's mashup theme to Highvis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2017 09:04:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Chaning-Qlik-Sense-Mashup-s-theme/m-p/1363736#M7936</guid>
      <dc:creator>dhdezrino</dc:creator>
      <dc:date>2017-06-27T09:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Chaning Qlik Sense Mashup's theme?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Chaning-Qlik-Sense-Mashup-s-theme/m-p/1363737#M7937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it may be too late for you but maybe this solution will help other people:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create your custom theme (see&lt;A href="https://community.qlik.com/docs/DOC-13517"&gt;More Qlik Sense Themes (updated with 3.2)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Create your mashup using dev-hub or your favorite editor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Mashup on Qlik Sense Server&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Apply your custom theme by using the following code:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15035843200291189" jivemacro_uid="_15035843200291189" modifiedtitle="true"&gt;
&lt;P&gt;require( ["js/qlik"], function ( qlik ) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; qlik.theme.apply('highvis2').then(function(result) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(result)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log('theme applied!');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.warn('could not apply theme!');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // just replace those with your app / object ids&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app = qlik.openApp('fbfd779f-3cff-4837-b3bf-7a0604e54a73', config);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.getObject('QV01','gXZJeg');&lt;/P&gt;
&lt;P&gt;});&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, this does not work when your mashup resides on an &lt;STRONG&gt;external web server&lt;/STRONG&gt; because i&lt;SPAN style="font-size: 13.3333px;"&gt;n a cross-site scenario, RequireJS will append a ".js" to the theme.json which will cause the request to fail (&lt;/SPAN&gt;&lt;A href="http://help.qlik.com/en-US/sense-developer/June2017/Subsystems/Mashups/Content/Howtos/mashups-troubleshooting.htm" style="font-size: 13.3333px;" title="http://help.qlik.com/en-US/sense-developer/June2017/Subsystems/Mashups/Content/Howtos/mashups-troubleshooting.htm"&gt;Troubleshooting: mashups ‒ Qlik Sense&lt;/A&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;‌ - "Extension does not work in a mashup on an external web server")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence you need to copy your &lt;STRONG&gt;theme.json&lt;/STRONG&gt; and rename it to &lt;STRONG&gt;theme.json.js&lt;/STRONG&gt; (RequireJS will still fail because it expects an AMD module and not a json file)&lt;/P&gt;&lt;P&gt;Open the &lt;STRONG&gt;theme.json.js&lt;/STRONG&gt; in a text editor, escape every " with a \" and minify the result so you have a single line of text.&lt;/P&gt;&lt;P&gt;Then just apply the "Possible Action" from the Troubleshooting Mashups link above:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px;"&gt;define([], function () { return "PLACE YOUR ESCAPED AND MINFIED JSON HERE";});&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After saving the theme.json.js file you can use the &lt;STRONG&gt;theme.apply&lt;/STRONG&gt; method in your mashup and your custom theme will be applied &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/cool.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did those steps in the June 2017 Release, hence I can not guarantee that this will work for earlier versions of Qlik Sense (if the qlik.theme.apply method is available it should though). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best of luck,&lt;/P&gt;&lt;P&gt;Mathias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 14:36:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Chaning-Qlik-Sense-Mashup-s-theme/m-p/1363737#M7937</guid>
      <dc:creator>m_s</dc:creator>
      <dc:date>2017-08-24T14:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Chaning Qlik Sense Mashup's theme?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Chaning-Qlik-Sense-Mashup-s-theme/m-p/2039514#M18121</link>
      <description>&lt;P&gt;Can you tell me where to insert the code shown please?&lt;/P&gt;</description>
      <pubDate>Sat, 18 Feb 2023 04:38:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Chaning-Qlik-Sense-Mashup-s-theme/m-p/2039514#M18121</guid>
      <dc:creator>amonjaras_c40</dc:creator>
      <dc:date>2023-02-18T04:38:44Z</dc:date>
    </item>
  </channel>
</rss>

