<?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 Setting Variable with Text Box  Trigger vs Field Event Trigger in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Setting-Variable-with-Text-Box-Trigger-vs-Field-Event-Trigger/m-p/1413819#M427311</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to set a variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Variable = vVariable1 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Value&amp;nbsp; =&lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;GetSelectedCount&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;District&lt;/SPAN&gt;)&amp;gt;1,vVariable1,&lt;SPAN style="color: #0000ff;"&gt;GetFieldSelections&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;District&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;If I create this trigger from a&amp;nbsp; text box this works perfectly fine. But when I try to do the exact same thing on a field (District) event trigger nothing happens.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Any thoughts?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Z&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 08 Oct 2017 15:39:01 GMT</pubDate>
    <dc:creator>zagzebski</dc:creator>
    <dc:date>2017-10-08T15:39:01Z</dc:date>
    <item>
      <title>Setting Variable with Text Box  Trigger vs Field Event Trigger</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-Variable-with-Text-Box-Trigger-vs-Field-Event-Trigger/m-p/1413819#M427311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to set a variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Variable = vVariable1 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Value&amp;nbsp; =&lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;GetSelectedCount&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;District&lt;/SPAN&gt;)&amp;gt;1,vVariable1,&lt;SPAN style="color: #0000ff;"&gt;GetFieldSelections&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;District&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;If I create this trigger from a&amp;nbsp; text box this works perfectly fine. But when I try to do the exact same thing on a field (District) event trigger nothing happens.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Any thoughts?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Z&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Oct 2017 15:39:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-Variable-with-Text-Box-Trigger-vs-Field-Event-Trigger/m-p/1413819#M427311</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2017-10-08T15:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Variable with Text Box  Trigger vs Field Event Trigger</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-Variable-with-Text-Box-Trigger-vs-Field-Event-Trigger/m-p/1413820#M427312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may have to play around with setting the trigger OnSelect / OnChange or (possibl) both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, you may consider moving this condition into the Expression of your chart (instead of using triggers, which may often have unexpected results).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2017 01:04:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-Variable-with-Text-Box-Trigger-vs-Field-Event-Trigger/m-p/1413820#M427312</guid>
      <dc:creator>shawn-qv</dc:creator>
      <dc:date>2017-10-09T01:04:00Z</dc:date>
    </item>
  </channel>
</rss>

