<?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 variable value when a certain selection is made in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-variable-value-when-a-certain-selection-is-made/m-p/650507#M237932</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to set variable vButton=1 when the current year is selected &lt;EM&gt;&lt;STRONG&gt;and&lt;/STRONG&gt;&lt;/EM&gt; no selections are made in other calendar fields (QUARTER, MONTH, MONTH-YEAR). This will change the color of my YTD button. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to add a Trigger Action under Document Properties, but the Field Event Triggers don't allow me to prescribe a condition like below. Can anyone help??&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;GetFieldSelections&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;YEAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;YEAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&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;vButton&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;=1) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Sep 2014 14:01:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-09-19T14:01:52Z</dc:date>
    <item>
      <title>Set variable value when a certain selection is made</title>
      <link>https://community.qlik.com/t5/QlikView/Set-variable-value-when-a-certain-selection-is-made/m-p/650507#M237932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to set variable vButton=1 when the current year is selected &lt;EM&gt;&lt;STRONG&gt;and&lt;/STRONG&gt;&lt;/EM&gt; no selections are made in other calendar fields (QUARTER, MONTH, MONTH-YEAR). This will change the color of my YTD button. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to add a Trigger Action under Document Properties, but the Field Event Triggers don't allow me to prescribe a condition like below. Can anyone help??&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;GetFieldSelections&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;YEAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;YEAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&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;vButton&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;=1) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2014 14:01:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-variable-value-when-a-certain-selection-is-made/m-p/650507#M237932</guid>
      <dc:creator />
      <dc:date>2014-09-19T14:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set variable value when a certain selection is made</title>
      <link>https://community.qlik.com/t5/QlikView/Set-variable-value-when-a-certain-selection-is-made/m-p/650508#M237933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to change the color of a button add an expression for Calculated in the color of the button&lt;/P&gt;&lt;P&gt;something like (adapt to your requirement)&lt;/P&gt;&lt;P&gt;=if(GetPossibleCount(SerialNumber)=1 and GetPossibleCount(Year)=1,red(), green())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think you need a variable and/or trigger&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2014 21:04:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-variable-value-when-a-certain-selection-is-made/m-p/650508#M237933</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-09-19T21:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set variable value when a certain selection is made</title>
      <link>https://community.qlik.com/t5/QlikView/Set-variable-value-when-a-certain-selection-is-made/m-p/650509#M237934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;create a calculated color for the text box (background) like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(getselectedcount(year)=1 and getselectedcount(month)&amp;lt;&amp;gt;1 and getselectedcount(monthyear)&amp;lt;&amp;gt;1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&amp;nbsp; newcolor(),&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oldcolor());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Sundar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Sep 2014 05:02:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-variable-value-when-a-certain-selection-is-made/m-p/650509#M237934</guid>
      <dc:creator>sundarakumar</dc:creator>
      <dc:date>2014-09-21T05:02:10Z</dc:date>
    </item>
  </channel>
</rss>

