<?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: Change the background colour based on a selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Change-the-background-colour-based-on-a-selection/m-p/1187470#M462436</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To test this to see where it is going wrong, I would just create another text object, and enter '= vCurrentLabel', then click on your Oxxio picture and see if it shows the value you are expecting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I think there are some extra brackets you don't need in your vKleur1 variable, I'm not sure if this is affecting it, but try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= if ( vCurrentLabel = 'Eneco Consumenten B.V.' , RGB(210,18,66),&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if ( vCurrentLabel = 'Oxxio', RGB(0,122,156),&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if ( vCurrentLabel = 'WoonEnergie', RGB(209,221,27),&amp;nbsp; &lt;/P&gt;&lt;P&gt;RGB(236,116,15) )));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Sep 2016 10:23:34 GMT</pubDate>
    <dc:creator>c_gilbert</dc:creator>
    <dc:date>2016-09-19T10:23:34Z</dc:date>
    <item>
      <title>Change the background colour based on a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Change-the-background-colour-based-on-a-selection/m-p/1187467#M462433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following Qlikview file in which I have created three pictures. Each of the pictures should fill the variable vColour1 with a different value. Then the background of the table box in the file should change based on the selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have taken the following steps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- In the properties of the text objects (pictures) I have classified the actions "Select in field" and classified them as Label with a text.&lt;/P&gt;&lt;P&gt;- The I added the following code in my load script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;vCurrentLabel&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = LABEL;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;vKleur1&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; =&amp;nbsp; &lt;BR /&gt; = if ( vCurrentLabel = 'Eneco Consumenten B.V.' , RGB(210,18,66),&amp;nbsp; &lt;BR /&gt; ( if ( vCurrentLabel = 'Oxxio', RGB(0,122,156),&amp;nbsp; &lt;BR /&gt; ( if ( vCurrentLabel = 'WoonEnergie', RGB(209,221,27),&amp;nbsp; &lt;BR /&gt; RGB(236,116,15) )))));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Now when I click on the first picture (Eneco) I see the background is indeed changing to right colour((210,18,66). However when I click on of the other labels the background is not changing while I was expecting that when I clicked on the Oxxio picture the background would change to (0,122,156).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Could anybody see what goes wrong here?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;Marc&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 09:27:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-the-background-colour-based-on-a-selection/m-p/1187467#M462433</guid>
      <dc:creator />
      <dc:date>2016-09-19T09:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Change the background colour based on a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Change-the-background-colour-based-on-a-selection/m-p/1187468#M462434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marc, You may need to add the .qvw file for us to look at.&lt;/P&gt;&lt;P&gt;Just ensure your descriptions are not case sensitive and that selections are exactly the same as in your if statement.&lt;/P&gt;&lt;P&gt;Should be names and nothing too complex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Chris &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 09:34:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-the-background-colour-based-on-a-selection/m-p/1187468#M462434</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-19T09:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Change the background colour based on a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Change-the-background-colour-based-on-a-selection/m-p/1187469#M462435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My guess would be that your select in field actions are not entirely set up correct. But I can't see that from here. Perhaps you can post a small qlikview document that demonstrates the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 09:55:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-the-background-colour-based-on-a-selection/m-p/1187469#M462435</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-09-19T09:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Change the background colour based on a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Change-the-background-colour-based-on-a-selection/m-p/1187470#M462436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To test this to see where it is going wrong, I would just create another text object, and enter '= vCurrentLabel', then click on your Oxxio picture and see if it shows the value you are expecting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I think there are some extra brackets you don't need in your vKleur1 variable, I'm not sure if this is affecting it, but try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= if ( vCurrentLabel = 'Eneco Consumenten B.V.' , RGB(210,18,66),&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if ( vCurrentLabel = 'Oxxio', RGB(0,122,156),&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if ( vCurrentLabel = 'WoonEnergie', RGB(209,221,27),&amp;nbsp; &lt;/P&gt;&lt;P&gt;RGB(236,116,15) )));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 10:23:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-the-background-colour-based-on-a-selection/m-p/1187470#M462436</guid>
      <dc:creator>c_gilbert</dc:creator>
      <dc:date>2016-09-19T10:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Change the background colour based on a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Change-the-background-colour-based-on-a-selection/m-p/1187471#M462437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I forgot to add the file. I uploaded it now... Does this help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 11:04:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-the-background-colour-based-on-a-selection/m-p/1187471#M462437</guid>
      <dc:creator />
      <dc:date>2016-09-19T11:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Change the background colour based on a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Change-the-background-colour-based-on-a-selection/m-p/1187472#M462438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's no field LABEL in the document you posted. I've used the field Netbeheerder instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 11:14:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-the-background-colour-based-on-a-selection/m-p/1187472#M462438</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-09-19T11:14:29Z</dc:date>
    </item>
  </channel>
</rss>

