<?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 Trigger to &amp;quot;unselect&amp;quot; not setting variable properly in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Trigger-to-quot-unselect-quot-not-setting-variable-properly/m-p/1084473#M925150</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a Field Event Trigger on FIELD1.&amp;nbsp; OnSelect -&amp;gt; External -&amp;gt; Set Variable vVARIABLE1 using logic below.&lt;/P&gt;&lt;P&gt;=if(GetSelectedCount(FIELD1)&amp;gt;0,'1','0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two text objects to test, because it was working properly temporarily but is now not working any longer.&amp;nbsp; I have not modified anything with this or any other Trigger or any reference to the variable or field in question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;List Box for FIELD1:&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Text Box for testing:&lt;/P&gt;&lt;P&gt;=vVARIABLE1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Text Box for testing:&lt;/P&gt;&lt;P&gt;=GetSelectedCount(FIELD1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The format below will be Selected Values from List Box, vVARIABLE1 test, GetSelectedCount(FIELD1) test&lt;/P&gt;&lt;P&gt;A, 1, 1 - Correct&lt;/P&gt;&lt;P&gt;B, 1, 1 - Correct&lt;/P&gt;&lt;P&gt;C, 1, 1 - Correct&lt;/P&gt;&lt;P&gt;D, 1, 1 - Correct&lt;/P&gt;&lt;P&gt;AB, 1, 2 - Correct&lt;/P&gt;&lt;P&gt;AC,&lt;SPAN style="font-size: 13.3333px;"&gt; 1, 2 - Correct&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;AD,&lt;SPAN style="font-size: 13.3333px;"&gt; 1, 2 - Correct&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;BC,&lt;SPAN style="font-size: 13.3333px;"&gt; 1, 2 - Correct&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;BD,&lt;SPAN style="font-size: 13.3333px;"&gt; 1, 2 - Correct&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;CD,&lt;SPAN style="font-size: 13.3333px;"&gt; 1, 2 - Correct&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ABC, 1, 3 - Correct&lt;/P&gt;&lt;P&gt;BCD, 1, 3 - Correct &lt;/P&gt;&lt;P&gt;ACD, 1, 3 - Correct&lt;/P&gt;&lt;P&gt;ABD&lt;SPAN style="font-size: 13.3333px;"&gt;, 1, 3 - Correct&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;ABCD, 1, 4, - Correct&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;none, 1, 0 - INCORRECT BECAUSE vVARIABLE TEST FAILS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I set an action to clear the FIELD1 field, then test box 1 will work.&amp;nbsp; The default load is with nothing selected for FIELD1, and test box 1 is accurate.&amp;nbsp; However, once I select something for FIELD1, I cannot unselect an option and have my vVARIABLE go to 0 as it should.&amp;nbsp; My Current Selections box shows nothing.&amp;nbsp; After I deselect the last selected value in the FIELD1 box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Qlik workspace is about 200MB and I'm not sure if size would have anything to do with this.&amp;nbsp; Have I utilized some function within Qlik incorrectly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>anothergreg</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Trigger to "unselect" not setting variable properly</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-to-quot-unselect-quot-not-setting-variable-properly/m-p/1084473#M925150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a Field Event Trigger on FIELD1.&amp;nbsp; OnSelect -&amp;gt; External -&amp;gt; Set Variable vVARIABLE1 using logic below.&lt;/P&gt;&lt;P&gt;=if(GetSelectedCount(FIELD1)&amp;gt;0,'1','0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two text objects to test, because it was working properly temporarily but is now not working any longer.&amp;nbsp; I have not modified anything with this or any other Trigger or any reference to the variable or field in question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;List Box for FIELD1:&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Text Box for testing:&lt;/P&gt;&lt;P&gt;=vVARIABLE1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Text Box for testing:&lt;/P&gt;&lt;P&gt;=GetSelectedCount(FIELD1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The format below will be Selected Values from List Box, vVARIABLE1 test, GetSelectedCount(FIELD1) test&lt;/P&gt;&lt;P&gt;A, 1, 1 - Correct&lt;/P&gt;&lt;P&gt;B, 1, 1 - Correct&lt;/P&gt;&lt;P&gt;C, 1, 1 - Correct&lt;/P&gt;&lt;P&gt;D, 1, 1 - Correct&lt;/P&gt;&lt;P&gt;AB, 1, 2 - Correct&lt;/P&gt;&lt;P&gt;AC,&lt;SPAN style="font-size: 13.3333px;"&gt; 1, 2 - Correct&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;AD,&lt;SPAN style="font-size: 13.3333px;"&gt; 1, 2 - Correct&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;BC,&lt;SPAN style="font-size: 13.3333px;"&gt; 1, 2 - Correct&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;BD,&lt;SPAN style="font-size: 13.3333px;"&gt; 1, 2 - Correct&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;CD,&lt;SPAN style="font-size: 13.3333px;"&gt; 1, 2 - Correct&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ABC, 1, 3 - Correct&lt;/P&gt;&lt;P&gt;BCD, 1, 3 - Correct &lt;/P&gt;&lt;P&gt;ACD, 1, 3 - Correct&lt;/P&gt;&lt;P&gt;ABD&lt;SPAN style="font-size: 13.3333px;"&gt;, 1, 3 - Correct&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;ABCD, 1, 4, - Correct&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;none, 1, 0 - INCORRECT BECAUSE vVARIABLE TEST FAILS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I set an action to clear the FIELD1 field, then test box 1 will work.&amp;nbsp; The default load is with nothing selected for FIELD1, and test box 1 is accurate.&amp;nbsp; However, once I select something for FIELD1, I cannot unselect an option and have my vVARIABLE go to 0 as it should.&amp;nbsp; My Current Selections box shows nothing.&amp;nbsp; After I deselect the last selected value in the FIELD1 box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Qlik workspace is about 200MB and I'm not sure if size would have anything to do with this.&amp;nbsp; Have I utilized some function within Qlik incorrectly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-to-quot-unselect-quot-not-setting-variable-properly/m-p/1084473#M925150</guid>
      <dc:creator>anothergreg</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger to "unselect" not setting variable properly</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-to-quot-unselect-quot-not-setting-variable-properly/m-p/1084474#M925151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found that I should have been using an OnChange Field Event Trigger.&amp;nbsp; The OnSelect was not triggering because when there was nothing selected, it would not get fired.&amp;nbsp; OnChange fires every time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 19:31:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-to-quot-unselect-quot-not-setting-variable-properly/m-p/1084474#M925151</guid>
      <dc:creator>anothergreg</dc:creator>
      <dc:date>2016-04-08T19:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger to "unselect" not setting variable properly</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-to-quot-unselect-quot-not-setting-variable-properly/m-p/1084475#M925152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As another follow-up, I actually had to use both an OnChange and OnSelect Trigger.&amp;nbsp; Apparently the OnChange will not work when going from 0 selections to &amp;gt;0 selections, and the OnSelect Trigger will not go from &amp;gt;0 selections to 0 selections.&amp;nbsp; So using both with the same logic worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 19:35:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-to-quot-unselect-quot-not-setting-variable-properly/m-p/1084475#M925152</guid>
      <dc:creator>anothergreg</dc:creator>
      <dc:date>2016-04-08T19:35:18Z</dc:date>
    </item>
  </channel>
</rss>

