<?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 set rgb colour in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-rgb-colour-in-script/m-p/285600#M106211</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, but how can i put that round a field I'm loading in the script, eg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;if(Fieldx = 'Blank', rgb(255,255,255), rgb(0,0,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what i would like is if Fieldx = Blank to load it in white colour, otherwise to load the field in balck colour. I know that I can do this in the chart properties, text format for my dimension, but it doesn't work when there are no values for fieldx when it's = Blank. So I would like to do it in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 May 2011 06:58:25 GMT</pubDate>
    <dc:creator>charlotte_qvw</dc:creator>
    <dc:date>2011-05-10T06:58:25Z</dc:date>
    <item>
      <title>set rgb colour in script</title>
      <link>https://community.qlik.com/t5/QlikView/set-rgb-colour-in-script/m-p/285598#M106209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone know if it's possible to set a colour in the qv script e.g., if a field='xyz', rgb (255,255,255)? Many thanks, Charlotte&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2011 06:46:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-rgb-colour-in-script/m-p/285598#M106209</guid>
      <dc:creator>charlotte_qvw</dc:creator>
      <dc:date>2011-05-10T06:46:39Z</dc:date>
    </item>
    <item>
      <title>set rgb colour in script</title>
      <link>https://community.qlik.com/t5/QlikView/set-rgb-colour-in-script/m-p/285599#M106210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Yes this is possible&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RGB(255,255.0) for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dirk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2011 06:53:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-rgb-colour-in-script/m-p/285599#M106210</guid>
      <dc:creator />
      <dc:date>2011-05-10T06:53:51Z</dc:date>
    </item>
    <item>
      <title>set rgb colour in script</title>
      <link>https://community.qlik.com/t5/QlikView/set-rgb-colour-in-script/m-p/285600#M106211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, but how can i put that round a field I'm loading in the script, eg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;if(Fieldx = 'Blank', rgb(255,255,255), rgb(0,0,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what i would like is if Fieldx = Blank to load it in white colour, otherwise to load the field in balck colour. I know that I can do this in the chart properties, text format for my dimension, but it doesn't work when there are no values for fieldx when it's = Blank. So I would like to do it in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2011 06:58:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-rgb-colour-in-script/m-p/285600#M106211</guid>
      <dc:creator>charlotte_qvw</dc:creator>
      <dc:date>2011-05-10T06:58:25Z</dc:date>
    </item>
    <item>
      <title>set rgb colour in script</title>
      <link>https://community.qlik.com/t5/QlikView/set-rgb-colour-in-script/m-p/285601#M106212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Why should you load a color in a script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe just put the value in the field. for example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldvalue1 = "255"&lt;/P&gt;&lt;P&gt;fieldvalue 2 = "255"&lt;/P&gt;&lt;P&gt;fieldvalue3 = "0"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and when you want to use them, RGB(Fieldvalue1,﻿﻿﻿﻿Fieldvalue2,Fieldvalue3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that a sollution for you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dirk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2011 07:03:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-rgb-colour-in-script/m-p/285601#M106212</guid>
      <dc:creator />
      <dc:date>2011-05-10T07:03:19Z</dc:date>
    </item>
    <item>
      <title>set rgb colour in script</title>
      <link>https://community.qlik.com/t5/QlikView/set-rgb-colour-in-script/m-p/285602#M106213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you ever find a way to define color in the script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 07:13:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-rgb-colour-in-script/m-p/285602#M106213</guid>
      <dc:creator />
      <dc:date>2011-09-22T07:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: set rgb colour in script</title>
      <link>https://community.qlik.com/t5/QlikView/set-rgb-colour-in-script/m-p/285603#M106214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure why you'd want to do this in the script when you can do it in the chart but see the attachment for a couple of examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose it makes sense to create a variable that stores colour - would save you having to type out e.g. RGB(255,255,0) and remember the numbers all the time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 09:30:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-rgb-colour-in-script/m-p/285603#M106214</guid>
      <dc:creator>nathanfurby</dc:creator>
      <dc:date>2011-09-22T09:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: set rgb colour in script</title>
      <link>https://community.qlik.com/t5/QlikView/set-rgb-colour-in-script/m-p/285604#M106215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P dir="ltr"&gt;thanks for your reply&lt;/P&gt;&lt;P dir="ltr"&gt;the reason I want to define a color in the script is because I need to use it in many charts.&lt;/P&gt;&lt;P dir="ltr"&gt;In your way- everytime you add the Item as a Dim into a chart you must go and set its background settings&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;I want, for example, all positive values to show in font color green in all charts all over the &lt;SPAN class="J-JK9eJ-PJVNOc" style="background: yellow;"&gt;gui&lt;/SPAN&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 09:56:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-rgb-colour-in-script/m-p/285604#M106215</guid>
      <dc:creator />
      <dc:date>2011-09-22T09:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: set rgb colour in script</title>
      <link>https://community.qlik.com/t5/QlikView/set-rgb-colour-in-script/m-p/285605#M106216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think that is possible&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 10:07:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-rgb-colour-in-script/m-p/285605#M106216</guid>
      <dc:creator>nathanfurby</dc:creator>
      <dc:date>2011-09-22T10:07:18Z</dc:date>
    </item>
  </channel>
</rss>

