<?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 Re: Qlik Sense Visualization API - How to set cell attributes in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Visualization-API-How-to-set-cell-attributes/m-p/15924#M243</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response.&amp;nbsp; Unfortunately, the autosort raises an error (I only tried this with a pivot-table visualization, which includes the autoSort property, so it's not a case of the wrong type):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;require.js:19 TypeError: Cannot read property 'qError' of undefined&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://....../resources/js/qlik.js:106:22645" rel="nofollow" target="_blank"&gt;http://....../resources/js/qlik.js:106:22645&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Array.map (native)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;EM style="font-size: 13.3333px;"&gt;......&lt;/EM&gt;/resources/js/qlik.js:106:22581&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at g (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;EM style="font-size: 13.3333px;"&gt;......&lt;/EM&gt;/resources/assets/external/requirejs/require.js:20:2335)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;EM style="font-size: 13.3333px;"&gt;......&lt;/EM&gt;/resources/assets/external/requirejs/require.js:20:2507&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at o.$eval (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;EM style="font-size: 13.3333px;"&gt;......&lt;/EM&gt;/resources/assets/external/requirejs/require.js:20:10136)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at o.$digest (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;EM style="font-size: 13.3333px;"&gt;......&lt;/EM&gt;/resources/assets/external/requirejs/require.js:20:8622)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;EM style="font-size: 13.3333px;"&gt;......&lt;/EM&gt;/resources/assets/external/requirejs/require.js:20:10223&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at f (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;EM style="font-size: 13.3333px;"&gt;......&lt;/EM&gt;/resources/assets/external/requirejs/require.js:18:20514)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;EM style="font-size: 13.3333px;"&gt;......&lt;/EM&gt;/resources/assets/external/requirejs/require.js:18:21973&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15173044583521971 jive_text_macro" jivemacro_uid="_15173044583521971" modifiedtitle="true"&gt;
&lt;P&gt;app.visualization.get(strQID).then(function(vis){&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if(strQID=='ueBFGP')&lt;/P&gt;
&lt;P&gt;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vis.setOptions(&lt;/P&gt;
&lt;P&gt;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; title:"New title",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; subtitle:"New subtitle",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; footnote:"New footnote",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; qHyperCubeDef:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; qDimensions:[{&lt;/P&gt;
&lt;P&gt;&amp;nbsp; qDef: {autoSort:false}&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }]&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp; });&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;});&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jan 2018 09:28:51 GMT</pubDate>
    <dc:creator>rbartley</dc:creator>
    <dc:date>2018-01-30T09:28:51Z</dc:date>
    <item>
      <title>Qlik Sense Visualization API - How to set cell attributes</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Visualization-API-How-to-set-cell-attributes/m-p/15922#M241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone tell me how to use the setOptions method of the visualization API&amp;nbsp; (&lt;A href="http://help.qlik.com/en-US/sense-developer/September2017/Subsystems/APIs/Content/CapabilityAPIs/VisualizationAPI/setOptions-method.htm" title="http://help.qlik.com/en-US/sense-developer/September2017/Subsystems/APIs/Content/CapabilityAPIs/VisualizationAPI/setOptions-method.htm"&gt;setOptions method ‒ Qlik Sense Developers&lt;/A&gt;&lt;SPAN style="font-size: 10pt;"&gt;) to set the attributes of a dimension?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following code can be used to change title, subtitle and footnote:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15172473222113715" jivemacro_uid="_15172473222113715" modifiedtitle="true"&gt;
&lt;P&gt;app.visualization.get(strQID).then(function(vis){&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; console.log('vis',vis);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vis.setOptions(&lt;/P&gt;
&lt;P&gt;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; //orientation:"vertical"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; title:"New title",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; subtitle:"New subtitle",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; footnote:"New footnote"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; });&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to the help, I should be able to set all of these properties: &lt;A href="http://help.qlik.com/en-US/sense-developer/September2017/Subsystems/APIs/Content/CapabilityAPIs/VisualizationAPI/pivottable-properties.htm" title="http://help.qlik.com/en-US/sense-developer/September2017/Subsystems/APIs/Content/CapabilityAPIs/VisualizationAPI/pivottable-properties.htm"&gt;http://help.qlik.com/en-US/sense-developer/September2017/Subsystems/APIs/Content/CapabilityAPIs/VisualizationAPI/pivottable-properties.htm &lt;/A&gt;&lt;/P&gt;&lt;P&gt;, but the example is rather simplistic and doesn't cover how to interact with the attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2018 17:44:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Visualization-API-How-to-set-cell-attributes/m-p/15922#M241</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2018-01-29T17:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Visualization API - How to set cell attributes</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Visualization-API-How-to-set-cell-attributes/m-p/15923#M242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rickard,&lt;/P&gt;&lt;P&gt;You'll probably have to experiment with this, but the principle is that you should provide an object, something like this:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15172488741296768 jive_text_macro" jivemacro_uid="_15172488741296768" modifiedtitle="true"&gt;
&lt;P&gt;vis.setOptions({&lt;/P&gt;
&lt;P&gt;&amp;nbsp; qHyperCubeDef:{&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; qDimensions:[{&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; qDef: {autoSort:false}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }]&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;});&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;Just make an object with the properties you want to change, omitting the ones you don't want to change. SetOptions wraps applyPatches, and convertes the object to a patch array, that is eventually sent to engine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I must admit I haven't tried this for a long time though, so I haven't verified that this actually works. Hope you find it helpful anyhow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik Wetterberg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2018 18:07:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Visualization-API-How-to-set-cell-attributes/m-p/15923#M242</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2018-01-29T18:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Visualization API - How to set cell attributes</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Visualization-API-How-to-set-cell-attributes/m-p/15924#M243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response.&amp;nbsp; Unfortunately, the autosort raises an error (I only tried this with a pivot-table visualization, which includes the autoSort property, so it's not a case of the wrong type):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;require.js:19 TypeError: Cannot read property 'qError' of undefined&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://....../resources/js/qlik.js:106:22645" rel="nofollow" target="_blank"&gt;http://....../resources/js/qlik.js:106:22645&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Array.map (native)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;EM style="font-size: 13.3333px;"&gt;......&lt;/EM&gt;/resources/js/qlik.js:106:22581&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at g (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;EM style="font-size: 13.3333px;"&gt;......&lt;/EM&gt;/resources/assets/external/requirejs/require.js:20:2335)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;EM style="font-size: 13.3333px;"&gt;......&lt;/EM&gt;/resources/assets/external/requirejs/require.js:20:2507&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at o.$eval (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;EM style="font-size: 13.3333px;"&gt;......&lt;/EM&gt;/resources/assets/external/requirejs/require.js:20:10136)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at o.$digest (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;EM style="font-size: 13.3333px;"&gt;......&lt;/EM&gt;/resources/assets/external/requirejs/require.js:20:8622)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;EM style="font-size: 13.3333px;"&gt;......&lt;/EM&gt;/resources/assets/external/requirejs/require.js:20:10223&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at f (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;EM style="font-size: 13.3333px;"&gt;......&lt;/EM&gt;/resources/assets/external/requirejs/require.js:18:20514)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;EM style="font-size: 13.3333px;"&gt;......&lt;/EM&gt;/resources/assets/external/requirejs/require.js:18:21973&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15173044583521971 jive_text_macro" jivemacro_uid="_15173044583521971" modifiedtitle="true"&gt;
&lt;P&gt;app.visualization.get(strQID).then(function(vis){&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if(strQID=='ueBFGP')&lt;/P&gt;
&lt;P&gt;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vis.setOptions(&lt;/P&gt;
&lt;P&gt;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; title:"New title",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; subtitle:"New subtitle",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; footnote:"New footnote",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; qHyperCubeDef:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; qDimensions:[{&lt;/P&gt;
&lt;P&gt;&amp;nbsp; qDef: {autoSort:false}&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }]&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp; });&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;});&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2018 09:28:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Visualization-API-How-to-set-cell-attributes/m-p/15924#M243</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2018-01-30T09:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Visualization API - How to set cell attributes</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Visualization-API-How-to-set-cell-attributes/m-p/15925#M244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The problem could be that it tries to replace the entire qDimensions array, which gives an error, that is not handled well, but breaks.&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15173938757347891" jivemacro_uid="_15173938757347891" modifiedtitle="true"&gt;
&lt;P&gt;vis.setOptions({&lt;/P&gt;
&lt;P&gt;qHyperCubeDef:{&lt;/P&gt;
&lt;P&gt;&amp;nbsp; qDimensions:{&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0: {qDef: {autoSort:false}}&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;});&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;If you want to modify the first dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I'm sorry, I haven't tried this, I'll leave that to you...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik Wetterberg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 10:21:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Visualization-API-How-to-set-cell-attributes/m-p/15925#M244</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2018-01-31T10:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Visualization API - How to set cell attributes</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Visualization-API-How-to-set-cell-attributes/m-p/15926#M245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi Erik,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Yes, this works, thanks.&amp;nbsp; I am now trying to work out how to set use the cellBackgroundColor option. &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15175739131378243 jive_text_macro" jivemacro_uid="_15175739131378243" modifiedtitle="true"&gt;
&lt;P&gt;if(strQID=='ueBFGP')&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;vis.setOptions(&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;title:"New title",&lt;/P&gt;
&lt;P&gt;subtitle:"New subtitle",&lt;/P&gt;
&lt;P&gt;footnote:"New footnote",&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;qHyperCubeDef:&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;qDimensions:&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;0: {&lt;/P&gt;
&lt;P&gt;qDef: {autoSort:false} ,&lt;/P&gt;
&lt;P&gt;qAttributeExpressions: &lt;/P&gt;
&lt;P&gt;[&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "qDef": "Product (Production)",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "id": {"cellBackgroundColor":"=Red()"}&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;]&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;},&lt;/P&gt;
&lt;P&gt;qMeasures:&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;0: {&lt;/P&gt;
&lt;P&gt;qAttributeExpressions: &lt;/P&gt;
&lt;P&gt;[&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "id": {cellBackgroundColor:"Red()"}&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;]&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;});&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;When I look at the console (see below), it seems as though this has worked, but the cell colour has not been changed.&amp;nbsp; Any ideas?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;IMG alt="Set Cell Background.PNG" class="jive-image image-1" src="/legacyfs/online/192316_Set Cell Background.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 12:24:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Visualization-API-How-to-set-cell-attributes/m-p/15926#M245</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2018-02-02T12:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Visualization API - How to set cell attributes</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Visualization-API-How-to-set-cell-attributes/m-p/15927#M246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The format looks strange, what was it like before the change? I would expect it to be something like:&lt;/P&gt;&lt;P&gt;id: "cellBackgroundColor",&lt;/P&gt;&lt;P&gt;qDef: "=Red()"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, really, what did it look like to start with??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik Wetterberg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 13:14:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Visualization-API-How-to-set-cell-attributes/m-p/15927#M246</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2018-02-02T13:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Visualization API - How to set cell attributes</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Visualization-API-How-to-set-cell-attributes/m-p/15928#M247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I comment out these changes, I see the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Set Cell Background 2.PNG" class="jive-image image-1" src="/legacyfs/online/192340_Set Cell Background 2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 14:58:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Visualization-API-How-to-set-cell-attributes/m-p/15928#M247</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2018-02-02T14:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Visualization API - How to set cell attributes</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Visualization-API-How-to-set-cell-attributes/m-p/15929#M248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And when I change the code to:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;id: "cellBackgroundColor",&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;qDef: "=Red()"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the following (similar to my comment of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11.7px;"&gt;02-Feb-2018 12:24).&amp;nbsp; This still has no impact on the cell background colour.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Set Cell Background 3.PNG" class="jive-image image-1" src="/legacyfs/online/192359_Set Cell Background 3.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 15:03:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Visualization-API-How-to-set-cell-attributes/m-p/15929#M248</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2018-02-02T15:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Visualization API - How to set cell attributes</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Visualization-API-How-to-set-cell-attributes/m-p/15930#M249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And what does it look like if you set background color to red in the client?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik Wetterberg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 16:10:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Visualization-API-How-to-set-cell-attributes/m-p/15930#M249</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2018-02-02T16:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Visualization API - How to set cell attributes</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Visualization-API-How-to-set-cell-attributes/m-p/15931#M250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Erik, do you mean in the Qlik Sense client, i.e. accessed through the QS hub?&amp;nbsp; There's no option with the pivot table, only table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Set Cell Background 4 Table.PNG" class="jive-image image-1" src="/legacyfs/online/192365_Set Cell Background 4 Table.PNG" style="height: 181px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...and here's the pivot table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Set Cell Background 5 Pivot Table.PNG" class="jive-image image-2" src="/legacyfs/online/192366_Set Cell Background 5 Pivot Table.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But according to Qlik Help, cellBackgroundColor should be possible to set for pivot-table too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/November2017/Subsystems/APIs/Content/CapabilityAPIs/VisualizationAPI/pivottable-properties.htm" title="https://help.qlik.com/en-US/sense-developer/November2017/Subsystems/APIs/Content/CapabilityAPIs/VisualizationAPI/pivottable-properties.htm"&gt;https://help.qlik.com/en-US/sense-developer/November2017/Subsystems/APIs/Content/CapabilityAPIs/VisualizationAPI/pivottable-properties.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Set Cell Background 6 Pivot Table Properties.PNG" class="jive-image image-3" src="/legacyfs/online/192367_Set Cell Background 6 Pivot Table Properties.PNG" style="height: 412px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Still, I'll try it on a table and let you know what happens.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 16:24:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Visualization-API-How-to-set-cell-attributes/m-p/15931#M250</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2018-02-02T16:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Visualization API - How to set cell attributes</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Visualization-API-How-to-set-cell-attributes/m-p/15932#M251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That looks like a bug in the documentation. I would be very surprised if setting it through the API works when you cannot do it in the client.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik Wetterberg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 17:47:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Visualization-API-How-to-set-cell-attributes/m-p/15932#M251</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2018-02-02T17:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Visualization API - How to set cell attributes</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Visualization-API-How-to-set-cell-attributes/m-p/15933#M252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Eureka!&amp;nbsp; I got it to work with the table by replacing the qDef with the qExpression property, so it now looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15175937024015207 jive_text_macro" jivemacro_uid="_15175937024015207"&gt;
&lt;P&gt;if(strQID=='ueBFGP')&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;vis.setOptions(&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;title:"New title",&lt;/P&gt;
&lt;P&gt;subtitle:"New subtitle",&lt;/P&gt;
&lt;P&gt;footnote:"New footnote",&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;qHyperCubeDef:&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;qDimensions:&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;0: {&lt;/P&gt;
&lt;P&gt;qDef: {autoSort:false} ,&lt;/P&gt;
&lt;P&gt;"qAttributeExpressions": &lt;/P&gt;
&lt;P&gt;[&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "id": "cellBackgroundColor",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "qExpression":"=Red()"&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;]&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;});&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 17:48:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Visualization-API-How-to-set-cell-attributes/m-p/15933#M252</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2018-02-02T17:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Visualization API - How to set cell attributes</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Visualization-API-How-to-set-cell-attributes/m-p/15934#M253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps it is a mistake in the documentation since when I tried the same approach that worked for the table, it didn't work for the pivot table.&amp;nbsp; While in the table, setting "qExpression":"=Red()" showed "qExpression":"=Red()" in the console, it showed as &lt;SPAN class="name" style="color: #881391; font-family: Consolas, 'Lucida Console', 'Courier New', monospace; font-size: 12px;"&gt;qFallbackTitle&lt;/SPAN&gt;&lt;SPAN class="object-properties-section-separator" style="padding-right: 5px; color: #212121; font-family: Consolas, 'Lucida Console', 'Courier New', monospace; font-size: 12px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="value object-value-string" style="color: #c41a16; font-family: Consolas, 'Lucida Console', 'Courier New', monospace; font-size: 12px;"&gt;&lt;SPAN class="object-value-string-quote" style="color: #222222;"&gt;"&lt;/SPAN&gt;=Red()&lt;SPAN class="object-value-string-quote" style="color: #222222;"&gt;" for the pivot table, which makes me think that it's not possible.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="value object-value-string" style="color: #c41a16; font-family: Consolas, 'Lucida Console', 'Courier New', monospace; font-size: 12px;"&gt;&lt;SPAN class="object-value-string-quote" style="color: #222222;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="value object-value-string" style="color: #c41a16; font-family: Consolas, 'Lucida Console', 'Courier New', monospace; font-size: 12px;"&gt;&lt;SPAN class="object-value-string-quote" style="color: #222222;"&gt;Thanks for all your help Erik&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 17:54:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Visualization-API-How-to-set-cell-attributes/m-p/15934#M253</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2018-02-02T17:54:20Z</dc:date>
    </item>
  </channel>
</rss>

