<?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 Use master items COLORS in QSense Extension in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Use-master-items-COLORS-in-QSense-Extension/m-p/1556421#M10167</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Is there an API to get the colors of a master item in a QS extension?&lt;/P&gt;&lt;P&gt;I've noticed that layout.qHyperCube.qDimensionInfo[0].coloring.colorMapRef contains an ID of a ColorMap in case of master items.&lt;/P&gt;&lt;P&gt;How can I get this ColorMap?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 06:20:20 GMT</pubDate>
    <dc:creator>marcondiro</dc:creator>
    <dc:date>2024-11-16T06:20:20Z</dc:date>
    <item>
      <title>Use master items COLORS in QSense Extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Use-master-items-COLORS-in-QSense-Extension/m-p/1556421#M10167</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Is there an API to get the colors of a master item in a QS extension?&lt;/P&gt;&lt;P&gt;I've noticed that layout.qHyperCube.qDimensionInfo[0].coloring.colorMapRef contains an ID of a ColorMap in case of master items.&lt;/P&gt;&lt;P&gt;How can I get this ColorMap?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:20:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Use-master-items-COLORS-in-QSense-Extension/m-p/1556421#M10167</guid>
      <dc:creator>marcondiro</dc:creator>
      <dc:date>2024-11-16T06:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Use master items COLORS in QSense Extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Use-master-items-COLORS-in-QSense-Extension/m-p/1561718#M10240</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The master dimension colors are stored in a separate generic object called ColorMapModel_&amp;lt;colorMapRef&amp;gt;, to get those values you would need to get the object and then its layout:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;app.getObject('ColorMapModel_abcdef').then(model =&amp;gt; model.getLayout().then(layout =&amp;gt; console.log(layout)));&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Mar 2019 07:46:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Use-master-items-COLORS-in-QSense-Extension/m-p/1561718#M10240</guid>
      <dc:creator>mek</dc:creator>
      <dc:date>2019-03-27T07:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Use master items COLORS in QSense Extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Use-master-items-COLORS-in-QSense-Extension/m-p/1662021#M12065</link>
      <description>&lt;P&gt;Dear colleagues&lt;/P&gt;
&lt;P&gt;This is a very interesting topic, as i¡m trying to get this info too from the colorMapRef object.&lt;/P&gt;
&lt;P&gt;Your proposal just don't show anything.&lt;/P&gt;
&lt;P&gt;And if I just get and print in the console this info&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;app.getObject('ColorMapModel_abcdef')&lt;/PRE&gt;
&lt;P&gt;it always show an error message, Object Not Found.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I'm missing here?&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 11:04:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Use-master-items-COLORS-in-QSense-Extension/m-p/1662021#M12065</guid>
      <dc:creator>IVAN-FELIPE</dc:creator>
      <dc:date>2020-01-02T11:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Use master items COLORS in QSense Extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Use-master-items-COLORS-in-QSense-Extension/m-p/1662385#M12069</link>
      <description>&lt;P&gt;Hi Ife,&lt;/P&gt;&lt;P&gt;Maybe you have not&amp;nbsp; inizialized correctly the "app" variable.&lt;/P&gt;&lt;P&gt;For example with &lt;FONT face="andale mono,times"&gt;var app =&amp;nbsp;&lt;SPAN&gt;qlik&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;currApp&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;&lt;SPAN&gt;Hope this will help.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;&lt;SPAN&gt;Marco&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 11:33:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Use-master-items-COLORS-in-QSense-Extension/m-p/1662385#M12069</guid>
      <dc:creator>marcondiro</dc:creator>
      <dc:date>2020-01-03T11:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Use master items COLORS in QSense Extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Use-master-items-COLORS-in-QSense-Extension/m-p/1662413#M12070</link>
      <description>&lt;P&gt;Hi marco&lt;/P&gt;
&lt;P&gt;Thanks for the answer,&lt;/P&gt;
&lt;P&gt;No it's not like that, the variable app is correctly initialized.&lt;/P&gt;
&lt;P&gt;It seems Qlik does not expose in the extensions API any way to get this info from the colorMapRef.&lt;/P&gt;
&lt;P&gt;Marco, have you tested it? have you been able to get info from the colorMapRef object?&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 12:35:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Use-master-items-COLORS-in-QSense-Extension/m-p/1662413#M12070</guid>
      <dc:creator>IVAN-FELIPE</dc:creator>
      <dc:date>2020-01-03T12:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Use master items COLORS in QSense Extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Use-master-items-COLORS-in-QSense-Extension/m-p/1663189#M12080</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/14679"&gt;@IVAN-FELIPE&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;abcdef&lt;/FONT&gt; part of the object id in my example is just a placeholder, it needs to be replaced with the actual id of the dimension you want the colors for &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 08:01:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Use-master-items-COLORS-in-QSense-Extension/m-p/1663189#M12080</guid>
      <dc:creator>mek</dc:creator>
      <dc:date>2020-01-07T08:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Use master items COLORS in QSense Extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Use-master-items-COLORS-in-QSense-Extension/m-p/1681946#M12433</link>
      <description>&lt;P&gt;I've tried this, but it seems to only return the colors that I specifically change from the default ones, as seen in the attached screenshot.&lt;/P&gt;&lt;P&gt;Do you happen to know how to retrieve the colors for the other values?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 08:23:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Use-master-items-COLORS-in-QSense-Extension/m-p/1681946#M12433</guid>
      <dc:creator>master_t</dc:creator>
      <dc:date>2020-03-05T08:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Use master items COLORS in QSense Extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Use-master-items-COLORS-in-QSense-Extension/m-p/1681974#M12434</link>
      <description>&lt;P&gt;Correct, only the changed colors are stored - the other colors are populated from the currently applied theme. There is currently no straight way to figure out exactly which colors other dimension values will have as that varies depending on other variables like the number of dimension values, persistence etc. The colors themselves are stored in the &lt;A href="https://help.qlik.com/en-US/sense-developer/June2019/Subsystems/APIs/Content/Sense_ClientAPIs/CapabilityAPIs/ThemeAPI/QTheme.htm" target="_self"&gt;theme api&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 09:44:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Use-master-items-COLORS-in-QSense-Extension/m-p/1681974#M12434</guid>
      <dc:creator>mek</dc:creator>
      <dc:date>2020-03-05T09:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Use master items COLORS in QSense Extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Use-master-items-COLORS-in-QSense-Extension/m-p/1681977#M12435</link>
      <description>&lt;P&gt;Thanks... what I'm actually trying to do is to replicate the "persistent colors" feature of the native Qlik Sense charts... where you flag "persistent colors" and all charts throughout the app will have the same color for the same dimension, regardless of the type of chart or the filter. Is that possible at all? I checked out the theme API, but while that lists a series of colors, I don't see any method that I can use to obtain the color for a certain value...&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 09:48:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Use-master-items-COLORS-in-QSense-Extension/m-p/1681977#M12435</guid>
      <dc:creator>master_t</dc:creator>
      <dc:date>2020-03-05T09:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Use master items COLORS in QSense Extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Use-master-items-COLORS-in-QSense-Extension/m-p/1682000#M12438</link>
      <description>&lt;P&gt;It's possible, the first step is to get the colors from the &lt;A href="https://help.qlik.com/en-US/sense-developer/June2019/Subsystems/Extensions/Content/Sense_Extensions/CustomThemes/custom-themes-properties.htm#palettes" target="_self"&gt;theme properties.&lt;/A&gt;&amp;nbsp;You can then use the remainder operator on&amp;nbsp; qElemNumber and array length to get the correct color value from the palette, something like&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const palette = theme.properties.palettes.data[0].scale;
const color = palette[cell.qElemNumber % palette.length];&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 05 Mar 2020 10:35:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Use-master-items-COLORS-in-QSense-Extension/m-p/1682000#M12438</guid>
      <dc:creator>mek</dc:creator>
      <dc:date>2020-03-05T10:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Use master items COLORS in QSense Extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Use-master-items-COLORS-in-QSense-Extension/m-p/1682010#M12439</link>
      <description>&lt;P&gt;Thanks, it worked!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 11:10:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Use-master-items-COLORS-in-QSense-Extension/m-p/1682010#M12439</guid>
      <dc:creator>master_t</dc:creator>
      <dc:date>2020-03-05T11:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Use master items COLORS in QSense Extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Use-master-items-COLORS-in-QSense-Extension/m-p/1971092#M17220</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/36436"&gt;@mek&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to create or set color map for master dimension with their values?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 06:37:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Use-master-items-COLORS-in-QSense-Extension/m-p/1971092#M17220</guid>
      <dc:creator>satyaprakash</dc:creator>
      <dc:date>2022-08-22T06:37:36Z</dc:date>
    </item>
  </channel>
</rss>

