<?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: Background colour on button in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Background-colour-on-button/m-p/1072976#M935178</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The button becomes green when I select every company code.&lt;/P&gt;&lt;P&gt;I only want it to become green when I select both company code 100 and 110.&lt;/P&gt;&lt;P&gt;And I want it to become blue again when I select something else e.g. company code 130&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can I do that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Feb 2016 14:40:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-02-19T14:40:41Z</dc:date>
    <item>
      <title>Background colour on button</title>
      <link>https://community.qlik.com/t5/QlikView/Background-colour-on-button/m-p/1072971#M935173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, QlikView Community&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a simple dataset what you can look at in the excel file.&lt;/P&gt;&lt;P&gt;I have one trouble I am trying to solve regarding background color in button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a button that has actions that is supposed to select two Company Codes (100 and 110).&lt;/P&gt;&lt;P&gt;Also I want the button to change colors when I push the button.&lt;/P&gt;&lt;P&gt;I want the button to change when the Company Codes are 100 and 110 and I want the button to change back when I deselect the company codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this formula in the button calculated base color:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If([Company Code] = '100' and [Company Code] = '110', RGB(0, 240, 16), RGB(15, 48, 99)) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it did not work. Do you have any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards Darri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 13:46:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-colour-on-button/m-p/1072971#M935173</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-19T13:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Background colour on button</title>
      <link>https://community.qlik.com/t5/QlikView/Background-colour-on-button/m-p/1072972#M935174</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;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;len&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetFieldSelections&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Company Code]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &amp;gt; 0,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RGB&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(0, 240, 16), &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RGB&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(15, 48, 99)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;-Sathish&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 14:06:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-colour-on-button/m-p/1072972#M935174</guid>
      <dc:creator>sathishkumar_go</dc:creator>
      <dc:date>2016-02-19T14:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Background colour on button</title>
      <link>https://community.qlik.com/t5/QlikView/Background-colour-on-button/m-p/1072973#M935175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/115276_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 14:06:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-colour-on-button/m-p/1072973#M935175</guid>
      <dc:creator>sathishkumar_go</dc:creator>
      <dc:date>2016-02-19T14:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Background colour on button</title>
      <link>https://community.qlik.com/t5/QlikView/Background-colour-on-button/m-p/1072974#M935176</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;I used a variable, please see the attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 14:08:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-colour-on-button/m-p/1072974#M935176</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2016-02-19T14:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Background colour on button</title>
      <link>https://community.qlik.com/t5/QlikView/Background-colour-on-button/m-p/1072975#M935177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use match instead&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(match([Company Code], 100, 110), RGB(0, 240, 16), RGB(15, 48, 99))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 14:12:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-colour-on-button/m-p/1072975#M935177</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2016-02-19T14:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Background colour on button</title>
      <link>https://community.qlik.com/t5/QlikView/Background-colour-on-button/m-p/1072976#M935178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The button becomes green when I select every company code.&lt;/P&gt;&lt;P&gt;I only want it to become green when I select both company code 100 and 110.&lt;/P&gt;&lt;P&gt;And I want it to become blue again when I select something else e.g. company code 130&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can I do that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 14:40:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-colour-on-button/m-p/1072976#M935178</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-19T14:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Background colour on button</title>
      <link>https://community.qlik.com/t5/QlikView/Background-colour-on-button/m-p/1072977#M935179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The button becomes green when I select either company code 100 or 110.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;But when I select both 100 and 110 the button becomes blue&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I only want it to become green when I select both company code 100 and 110.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;how can I do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 14:43:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-colour-on-button/m-p/1072977#M935179</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-19T14:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Background colour on button</title>
      <link>https://community.qlik.com/t5/QlikView/Background-colour-on-button/m-p/1072978#M935180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;Two methods for you... Method 1 works perfectly I believe:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed the colour to be calculated as follows:&lt;/P&gt;&lt;P&gt;=if(num(TextBetween(GetFieldSelections([Company Code]),'(','|')&amp;amp;TextBetween(GetFieldSelections([Company Code]),'|',')'))=100110,RGB(0,240,16),RGB(15,48,99))&lt;/P&gt;&lt;P&gt;This makes sure that those specific values have been selected.&amp;nbsp; Button changes perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively:&lt;/P&gt;&lt;P&gt;I changed the color to be calculated on whether &lt;SPAN style="font-size: 13.3333px;"&gt;the sum of the Country Code when 100 and 110 are selected is equal to the sum of the rest not being selected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if(sum({$&amp;lt;[Company Code] =- {'120','130','140'}&amp;gt;}[Company Code])=sum([Company Code]),RGB(0,0,0),RGB(155,155,155))&lt;/P&gt;&lt;P&gt;Problem here is if you select two other fields and they by chance equal the same as 100 and 110 it changes as well.&amp;nbsp; So I think method 1 is preferable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 14:46:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-colour-on-button/m-p/1072978#M935180</guid>
      <dc:creator>paul_vans267</dc:creator>
      <dc:date>2016-02-19T14:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Background colour on button</title>
      <link>https://community.qlik.com/t5/QlikView/Background-colour-on-button/m-p/1072979#M935181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If ( Concat(Distinct&amp;nbsp; [Company Code],':')='100:110',rgb (0,255,0),rgb (0,0,255))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 15:02:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-colour-on-button/m-p/1072979#M935181</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2016-02-19T15:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Background colour on button</title>
      <link>https://community.qlik.com/t5/QlikView/Background-colour-on-button/m-p/1072980#M935182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Darri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nearly there, try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetFieldSelections&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;([&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Company Code]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)='(100|110)',&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RGB&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(0, 240, 16), &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RGB&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(15, 48, 99))&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;HTH Andy&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 15:30:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-colour-on-button/m-p/1072980#M935182</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2016-02-19T15:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Background colour on button</title>
      <link>https://community.qlik.com/t5/QlikView/Background-colour-on-button/m-p/1072981#M935183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;wildmatch&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetFieldSelections&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Company Code]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)),'100','110','(100|110)','100, 110'),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RGB&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(0, 240, 16), &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RGB&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(15, 48, 99))&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;-Sathish&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 15:46:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-colour-on-button/m-p/1072981#M935183</guid>
      <dc:creator>sathishkumar_go</dc:creator>
      <dc:date>2016-02-19T15:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Background colour on button</title>
      <link>https://community.qlik.com/t5/QlikView/Background-colour-on-button/m-p/1072982#M935184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Concat(distinct &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Company Code]&lt;/SPAN&gt;,',')='2008,2009',&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;RGB(0, 240, 16), RGB(15, 48, 99)&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 16:01:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-colour-on-button/m-p/1072982#M935184</guid>
      <dc:creator>PradeepReddy</dc:creator>
      <dc:date>2016-02-19T16:01:57Z</dc:date>
    </item>
  </channel>
</rss>

