<?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: Button color should change when selected in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Button-color-should-change-when-selected/m-p/918866#M984906</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to set an extra variable-value by clicking from this button, for example vColor to 0 or 1, maybe in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set variable action&lt;/P&gt;&lt;P&gt;= if($(vColor) = 0, 1, 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;button-color:&lt;/P&gt;&lt;P&gt;= if($(vColor) = 0, blue(), green())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Aug 2015 11:55:00 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2015-08-11T11:55:00Z</dc:date>
    <item>
      <title>Button color should change when selected</title>
      <link>https://community.qlik.com/t5/QlikView/Button-color-should-change-when-selected/m-p/918864#M984904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please help me to change the color of button when we select it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Button color is blue right now, where as when we select it should change to green color.&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, 11 Aug 2015 11:44:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-color-should-change-when-selected/m-p/918864#M984904</guid>
      <dc:creator>sridhar_sigired</dc:creator>
      <dc:date>2015-08-11T11:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Button color should change when selected</title>
      <link>https://community.qlik.com/t5/QlikView/Button-color-should-change-when-selected/m-p/918865#M984905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use calculated Color for button color. Use the same variable use in the button action to control its color&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(vVar = 1, ActiveColor, DeactiveColor)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where vVar is button's action&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2015 11:53:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-color-should-change-when-selected/m-p/918865#M984905</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-11T11:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Button color should change when selected</title>
      <link>https://community.qlik.com/t5/QlikView/Button-color-should-change-when-selected/m-p/918866#M984906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to set an extra variable-value by clicking from this button, for example vColor to 0 or 1, maybe in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set variable action&lt;/P&gt;&lt;P&gt;= if($(vColor) = 0, 1, 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;button-color:&lt;/P&gt;&lt;P&gt;= if($(vColor) = 0, blue(), green())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2015 11:55:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-color-should-change-when-selected/m-p/918866#M984906</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-08-11T11:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Button color should change when selected</title>
      <link>https://community.qlik.com/t5/QlikView/Button-color-should-change-when-selected/m-p/918867#M984907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sridhar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA Qlikview, You have to make you variables and just do some magic. Hope this qvw helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chitra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2015 11:55:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-color-should-change-when-selected/m-p/918867#M984907</guid>
      <dc:creator />
      <dc:date>2015-08-11T11:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Button color should change when selected</title>
      <link>https://community.qlik.com/t5/QlikView/Button-color-should-change-when-selected/m-p/918868#M984908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here i have three actions for button. So do i need to write nested if condition? Can u help on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Activate Object - CH02&lt;/P&gt;&lt;P&gt;Activate Object - CH04&lt;/P&gt;&lt;P&gt;Activate Object - CH06&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2015 11:58:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-color-should-change-when-selected/m-p/918868#M984908</guid>
      <dc:creator>sridhar_sigired</dc:creator>
      <dc:date>2015-08-11T11:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Button color should change when selected</title>
      <link>https://community.qlik.com/t5/QlikView/Button-color-should-change-when-selected/m-p/918869#M984909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created variable &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; vColor&lt;/SPAN&gt; with 0 value and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;set variable action as&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;= if($(vColor) = 0, 1, 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;button calculated color as&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;= if($(vColor) = 0, blue(), green())&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;But it is not working. Any problem in above lines?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2015 12:31:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-color-should-change-when-selected/m-p/918869#M984909</guid>
      <dc:creator>sridhar_sigired</dc:creator>
      <dc:date>2015-08-11T12:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Button color should change when selected</title>
      <link>https://community.qlik.com/t5/QlikView/Button-color-should-change-when-selected/m-p/918870#M984910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there an initial value in vColor? If vColor is null neither expression will be valid and they will both be ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initialise vColor to 0 or 1 using the variable overview or an input box.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2015 12:38:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-color-should-change-when-selected/m-p/918870#M984910</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-08-11T12:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Button color should change when selected</title>
      <link>https://community.qlik.com/t5/QlikView/Button-color-should-change-when-selected/m-p/918871#M984911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please set a variable to change the color and set it in calculated section under backgroud color:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vChangeColor&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;=1,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RGB&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(0,255,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,0,255)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2015 12:43:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-color-should-change-when-selected/m-p/918871#M984911</guid>
      <dc:creator />
      <dc:date>2015-08-11T12:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Button color should change when selected</title>
      <link>https://community.qlik.com/t5/QlikView/Button-color-should-change-when-selected/m-p/918872#M984912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The remark from &lt;A href="https://community.qlik.com/qlik-users/13229"&gt;jontydkpi&lt;/A&gt; is right - you need to initialise this variable (to make another loop within the expressions to fetch this case is possible but not really useful - once set to 0 or 1 and it worked).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2015 12:53:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-color-should-change-when-selected/m-p/918872#M984912</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-08-11T12:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Button color should change when selected</title>
      <link>https://community.qlik.com/t5/QlikView/Button-color-should-change-when-selected/m-p/918873#M984913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sridhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;simple example attached&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH - Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2015 14:00:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-color-should-change-when-selected/m-p/918873#M984913</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2015-08-11T14:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Button color should change when selected</title>
      <link>https://community.qlik.com/t5/QlikView/Button-color-should-change-when-selected/m-p/918874#M984914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Community support is awesome. thank you all for your replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here i have three buttons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Button 1&lt;/P&gt;&lt;P&gt;Button 2&lt;/P&gt;&lt;P&gt;Button 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to set a action where if click on button two (activate as green color), remaining buttons should go back to non selected mode (inactivate to blue color).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For one button, the above variable method is working. Whereas may i know how can we set this with multiple variables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 04:15:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-color-should-change-when-selected/m-p/918874#M984914</guid>
      <dc:creator>sridhar_sigired</dc:creator>
      <dc:date>2015-08-12T04:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Button color should change when selected</title>
      <link>https://community.qlik.com/t5/QlikView/Button-color-should-change-when-selected/m-p/918875#M984915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Follow this:&lt;/P&gt;&lt;P&gt;1. Take Three Buttons&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1. First&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. Second&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3. Third&lt;/P&gt;&lt;P&gt;2. Take one Variable like "vClor" and assign 0 to it.&lt;/P&gt;&lt;P&gt;3. Now on First button set below action on "Set Variable"&lt;/P&gt;&lt;P&gt;&amp;nbsp; =if(vColor=1 or vColor =2,0,0) &lt;/P&gt;&lt;P&gt;them First button only write below expression under Calculated with in Base color area:&lt;/P&gt;&lt;P&gt;=if(vColor=1 or vColor =2,0,0) &lt;/P&gt;&lt;P&gt;4. follow this step for Second and Third Button&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Second Button:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =if(vColor=0 or vColor =2,1,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; if(vColor=1,Green(), Blue())&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Third Button&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =if(vColor=1 or vColor =0,2,2) &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; if(vColor=2,Green(), Blue())&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 04:49:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-color-should-change-when-selected/m-p/918875#M984915</guid>
      <dc:creator>jsingh71</dc:creator>
      <dc:date>2015-08-12T04:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Button color should change when selected</title>
      <link>https://community.qlik.com/t5/QlikView/Button-color-should-change-when-selected/m-p/918876#M984916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 05:33:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-color-should-change-when-selected/m-p/918876#M984916</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2015-08-12T05:33:31Z</dc:date>
    </item>
  </channel>
</rss>

