<?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: Set color by expression in extension in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380275#M8192</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 easiest way to achieve this is to simply add another measure and use that for color.&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, 16 Oct 2017 20:30:32 GMT</pubDate>
    <dc:creator>ErikWetterberg</dc:creator>
    <dc:date>2017-10-16T20:30:32Z</dc:date>
    <item>
      <title>Set color by expression in extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380273#M8190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to define the coloring option by expression in the properties panel of a visualization extension.&lt;/P&gt;&lt;P&gt;I looked at several extensions and none of them have used any expressions in the properties panel excluding &lt;EM&gt;dimension&lt;/EM&gt;, &lt;EM&gt;measure&lt;/EM&gt;, and &lt;EM&gt;appearance &amp;gt; general&lt;/EM&gt; panes which are all auto created/defined parts of the properties panel, having no setting attributes in the js file.&lt;/P&gt;&lt;P&gt;When I tried the &lt;EM&gt;expression: "always" &lt;/EM&gt; element&amp;nbsp; in the js file I got the orange &lt;EM&gt;&lt;STRONG&gt;fx &lt;/STRONG&gt;&lt;/EM&gt;sign show up in the properties panel but the calculations were not carried out...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any kind of help would be greatly appreciated! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2017 15:26:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380273#M8190</guid>
      <dc:creator />
      <dc:date>2017-08-10T15:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set color by expression in extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380274#M8191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Barnabas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wonder if you are still working on this after two months, if so do you have any updates? I'm working on a similar issue, I've gotten maybe one step further, but still a bit lost:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to add custom coloring options to my dimensional values. I add new items to my properties panel like this:&lt;/P&gt;&lt;P&gt;dimensions: {&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;uses: "dimensions",&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;min: 2,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;max: 6,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;items: {&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;colorExpression:{&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;type: "string",&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;label: "Enter color expression",&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;ref:"qDef.myColorSelection.expression",&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;expression:"always"&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;}&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This allows me to enter an expression for each dimension within my properties panel user interface. So, if my dimension is called D1 and includes some value like "monkey", I might write:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = If(D1 = "money", '#665522', '#000000')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, if I run the app and break somewhere in the paint function, I'll see the following in &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;layout.qHyperCube.qDimensionInfo[0].myColorSelection.expression&lt;/P&gt;&lt;P&gt;which evaluates to '#000000' (i.e., the 'else' clause of my expression).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not what I want. I do not want a single color for each dimension. I want each different value in the dimension to evaluate to its own color. So 'monkey' values in D1 should be &lt;SPAN style="font-size: 13.3333px;"&gt; '#665522', 'tiger' should be '#DDCC33', etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Hopefully someone picks up this thread. Looking at &lt;A href="https://community.qlik.com/qlik-users/5070"&gt;erik.wetterberg&lt;/A&gt;‌ and &lt;A href="https://community.qlik.com/qlik-users/55130"&gt;akl&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 15:05:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380274#M8191</guid>
      <dc:creator>jonvitale</dc:creator>
      <dc:date>2017-10-16T15:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set color by expression in extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380275#M8192</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 easiest way to achieve this is to simply add another measure and use that for color.&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, 16 Oct 2017 20:30:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380275#M8192</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2017-10-16T20:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set color by expression in extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380276#M8193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Erik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for replying, but I'm not sure I understand. I have multiple dimensions that need to be colored independently. I think a close relative of what I'm looking for is in the out-of-the-box Table object. In this object, within the Data tab, you can add multiple Dimensions as columns. Expanding the added dimensions, you get the option of entering a "Background color expression" and a "Text color expression". This is then evaluated on a row-by-row basis in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas or alternatively, do you know if there is a way to look at the source for the Table object?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 20:48:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380276#M8193</guid>
      <dc:creator>jonvitale</dc:creator>
      <dc:date>2017-10-16T20:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set color by expression in extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380277#M8194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;You are right, adding an extra measure is for a one dimension scenario. The built-in table uses &lt;/SPAN&gt;&lt;SPAN style="color: #0f0f0f; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;qAttributeExpressions, mentioned &lt;A href="https://help.qlik.com/en-US/sense-developer/June2017/Subsystems/EngineAPI/Content/Structs/HyperCubeDef.htm"&gt;here&lt;/A&gt;. I don't think Qlik has published any property panel component for this, so you have the alternatives of trying to see what the table does or building something yourself. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0f0f0f; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0f0f0f; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Erik Wetterberg&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 10:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380277#M8194</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2017-10-17T10:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set color by expression in extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380278#M8195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Erik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll play around with and see what I come up with. By the way, your link was broken for me. But &lt;A href="http://help.qlik.com/en-US/sense-developer/September2017/Subsystems/EngineAPI/Content/GenericObject/PropertyLevel/HyperCubeDef.htm"&gt;this one&lt;/A&gt; seems to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I may also open up a new thread about this topic - just in the hopes that someone who knows might stumble by a new question. Seems unlikely, but at least I would be able to curate the thread a bit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 12:50:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380278#M8195</guid>
      <dc:creator>jonvitale</dc:creator>
      <dc:date>2017-10-17T12:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set color by expression in extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380279#M8196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/5070"&gt;erik.wetterberg&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to successfully color my dimensions by using this as an item in my dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15083360713509603" jivemacro_uid="_15083360713509603"&gt;
&lt;P&gt;colorExpression:{&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type: "string",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9pt;"&gt;label: "Enter color expression",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ref:"qAttributeExpressions.0.qExpression",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; expression:"optional"&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This applies the expression to all of the rows in the hypercube matrix. It's very nice. I can then use some app-specific logic to figure out what colors to display to represent the dimensional objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the problem I'm running into now, is I want another way to color that has nothing to do with dimensions. I'd like to put a "color by expression" somewhere in an "appearance" section of the properties panel. The syntax of the item I use is almost identical to above. However, using the ref "qAttributeExpressions.0.qExpression" doesn't actually run the expression on each row of the matrix. Instead I'll find something like layout.qAttributeExpressions[0].qExpression, with an un-evaluated expression (e.g., "=IF(...)")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know if there is any kind of way to force Qlik to evaluate the expression on each row from within the properties channel? I suppose the other option is to grab the unevaluated color expression in the paint function, evaluate it on each row, and color accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks - and when I get this all worked out I'll try to put some documentation up so others can benefit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2017 14:27:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380279#M8196</guid>
      <dc:creator>jonvitale</dc:creator>
      <dc:date>2017-10-18T14:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set color by expression in extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380280#M8197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you want it evaluated for each row in the matrix you have as far as I know two alternatives:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;add it as a measure&lt;/LI&gt;&lt;LI&gt;use qAttributeExpression&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW well done with the attribute expression!&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, 18 Oct 2017 14:42:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380280#M8197</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2017-10-18T14:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set color by expression in extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380281#M8198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/5070"&gt;erik.wetterberg&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, in my app, we are using the first measure for sizing a visualization. I suppose I could make the minimum number of measures 2, and then use the second measure as a color measure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this doesn't seem like good practice. In most of the out-of-the-box visualizations you can create a new measure in the "Appearances" section of the app. This way it is absolutely clear to users that they are making a measure specifically for coloring. As far as you know, is there a way to do this in an extension? Is there a way to tell Qlik that "some expression" should be an attribute of a new measure?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be perfectly clear, let's say that I have this as part of my definition code:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15085192016853102" jivemacro_uid="_15085192016853102"&gt;
&lt;P&gt;measures: {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uses: "measures",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; min: 1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max: 3&lt;/P&gt;
&lt;P&gt;},&lt;/P&gt;
&lt;P&gt;myAppearancePanel: {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; label: "My Appearance Section where you can create a new measure to color the visualization",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I_Want_A_New_Measure_For_Color:{&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type: "string",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; expression: "optional",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; label: "Color by expression",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ref:"qAttributeExpressions.0.qExpression"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code is not creating a new measure. It just puts an un-evaluated expression in the layout at qAttributeExpressions[0].qExpression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2017 17:11:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380281#M8198</guid>
      <dc:creator>jonvitale</dc:creator>
      <dc:date>2017-10-20T17:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set color by expression in extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380282#M8199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;AttributeExpression&amp;nbsp; will work only in dimensions. I haven't tried this, but you probably could set ref to something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;qHypercubeDef.qMeasures.1.qDef&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably the best way is to look at how this is done in the built-in charts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&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>Sat, 21 Oct 2017 07:23:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380282#M8199</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2017-10-21T07:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set color by expression in extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380283#M8200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll try that, but one last question and I'll stop bugging you. Do you know how to view the code for the built in charts? that would certainly solve all my problems.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Oct 2017 16:14:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380283#M8200</guid>
      <dc:creator>jonvitale</dc:creator>
      <dc:date>2017-10-21T16:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set color by expression in extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380284#M8201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/5070"&gt;erik.wetterberg&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unbelievable, it worked! The actual code for the reference should be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;qHyperCubeDef.qMeasures.1.qDef.qDef&lt;/P&gt;&lt;P&gt;(the first qDef is an object containing the qDef expression.). The new calculated measure now sits there right along side my other measure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this is all I need. When I put everything together, I'll write up a little reference guide and be sure to give you a lot of credit!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 13:17:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380284#M8201</guid>
      <dc:creator>jonvitale</dc:creator>
      <dc:date>2017-10-23T13:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set color by expression in extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380285#M8202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I came up with the same need. Could you please share the complete solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2017 17:38:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380285#M8202</guid>
      <dc:creator>pasi_lehtinen</dc:creator>
      <dc:date>2017-11-08T17:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set color by expression in extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380286#M8203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pasi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What exactly are you trying to do? I found that if I used a reference like, "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;qHyperCubeDef.qMeasures.1.qDef.qDef&lt;/SPAN&gt;", anywhere in the property definition, I could define a new measure. You'll even see this measure in the list of measures. But it didn't quite work because the visualization would crash when I tried to put a new visualization on a sheet. Not sure why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wound up just adding a new expression attribute to my dimensions. Which I can explain if you need help. Let me know what you are working on. Really I want to document this whole thing at some point anyhow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2017 18:01:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380286#M8203</guid>
      <dc:creator>jonvitale</dc:creator>
      <dc:date>2017-11-08T18:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set color by expression in extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380287#M8204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi im working with navigation button and I have to add a functionality in it ColorByExpression&amp;nbsp; so I have included this&amp;nbsp; in my code&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;colorExpression:{&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;type: "string",&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;label: "Enter color expression",&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;ref:"qHyperCubeDef.myColorSelection.expression",&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;expression:"always"&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;}&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt; but still im not able to achive this.&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;I also want to ask is &lt;STRONG&gt;myColorSelection.expression&amp;nbsp; &lt;/STRONG&gt;is a builtin functionality&lt;STRONG&gt; of qHypercubeDef &lt;/STRONG&gt;or we have to add its definition else where in the code also???&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;Please help me out in this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 13:08:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380287#M8204</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-22T13:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set color by expression in extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380288#M8205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you do not have a HyperCubeDef in your properties structure (most likely for a button) then you cant use this method. Instead you could use a &lt;A href="https://help.qlik.com/en-US/sense-developer/February2018/Subsystems/APIs/Content/ExtensionAPI/property-definition-string.htm"&gt;string &lt;/A&gt;or possibly a &lt;A href="https://help.qlik.com/en-US/sense-developer/February2018/Subsystems/APIs/Content/ExtensionAPI/property-definition-color-picker.htm"&gt;color-picker&lt;/A&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&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>Thu, 22 Feb 2018 17:35:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380288#M8205</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2018-02-22T17:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set color by expression in extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380289#M8206</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;I have to change the background color of the navigation button when I click on it and it gets back to the original color when I select any other navigation button. how can I do it?&lt;/P&gt;&lt;P&gt;I tried using this code for that purpose. I have also set the variables&amp;nbsp; and kept this expression in background color&amp;nbsp; field&lt;/P&gt;&lt;P&gt;expression ---&amp;gt; if(vbutton='1',Red(),Green()).&lt;/P&gt;&lt;P&gt;but it didn't work out.&lt;/P&gt;&lt;P&gt;can u suggest me any alternate way or&amp;nbsp; code which whould help me out of this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx&lt;/P&gt;&lt;P&gt;sadhana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 02:48:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380289#M8206</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-01T02:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set color by expression in extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380290#M8207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;can we do the&amp;nbsp; same to change the background color of the extension based on set variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx&lt;/P&gt;&lt;P&gt;sadhana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 02:56:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380290#M8207</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-01T02:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set color by expression in extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380291#M8208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jonathan Sir,&lt;/P&gt;&lt;P&gt;&amp;nbsp; My name is Humesh . I am developing an extention for table.I want to add custome color property to every dimentions and measures.&lt;/P&gt;&lt;P&gt;I found your this code :&lt;/P&gt;&lt;OL class="dp-c" start="1" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; list-style-position: initial; list-style-image: initial; color: #5c5c5c; margin: 0 0 1px 45px !important;"&gt;&lt;LI&gt;&lt;SPAN style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit; font-weight: inherit;"&gt;colorExpression:{&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type: &lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; background-color: inherit; font-size: 9pt !important;"&gt;"string"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt;,&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; label: &lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; background-color: inherit; font-size: 9pt !important;"&gt;"Enter color expression"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt;,&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ref:&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; background-color: inherit; font-size: 9pt !important;"&gt;"qAttributeExpressions.0.qExpression"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt;,&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; expression:&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; background-color: inherit; font-size: 9pt !important;"&gt;"optional"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;}&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P style="padding: 0 0 0 60px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I have written this code inside of dimention shown below:&lt;/P&gt;&lt;P&gt;definition : {&lt;/P&gt;&lt;P&gt;&amp;nbsp; type : "items",&lt;/P&gt;&lt;P&gt;&amp;nbsp; component : "accordion",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; items : {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dimensions : {&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;&amp;nbsp;&amp;nbsp; uses : "dimensions",&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;&amp;nbsp;&amp;nbsp; min : 1,&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;&amp;nbsp;&amp;nbsp; items: {&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;&amp;nbsp; colorExpression:{&amp;nbsp; &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;&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;&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;&amp;nbsp;&amp;nbsp; type: "string",&amp;nbsp; &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;&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;&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;&amp;nbsp;&amp;nbsp; label: "Enter color expression",&amp;nbsp; &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;&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;&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;&amp;nbsp;&amp;nbsp; ref:"qAttributeExpressions.0.qExpression",&amp;nbsp; &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;&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;&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;&amp;nbsp;&amp;nbsp; expression:"optional"&amp;nbsp; &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;&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;&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;&amp;nbsp; } &lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; },&lt;/P&gt;&lt;P&gt;now please tell me what should I need to write inside of function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; paint: function ($element,layout) {&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &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;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please give me solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 09:22:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380291#M8208</guid>
      <dc:creator>humesh_sindpure</dc:creator>
      <dc:date>2018-03-22T09:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set color by expression in extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380292#M8209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Humeshkumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You'll need to loop through all rows of the Hypercube. The row itself will be an array with each dimension and each column, so given that you are putting this in the first dimension, the index you'll want to use is 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this.backendApi.eachDataRow( function (rownum, row){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var dimIndex = 0; // you are putting the value in your first dimension&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row[dimIndex].qAttrExps.qValues[0].qText&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 13:33:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Set-color-by-expression-in-extension/m-p/1380292#M8209</guid>
      <dc:creator>jonvitale</dc:creator>
      <dc:date>2018-03-22T13:33:55Z</dc:date>
    </item>
  </channel>
</rss>

