<?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 function - getselectedcount and getfieldselections in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Trigger-function-getselectedcount-and-getfieldselections/m-p/1095662#M364012</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello to all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used a trigger in the following field in my QVD:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="trigger_q1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/121262_trigger_q1.PNG" style="height: 518px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="trigger_q3.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/121263_trigger_q3.PNG" style="height: 181px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;The function used was: ='('&amp;amp;if(GetSelectedCount(Month)=0,vMonthName,GetFieldSelections(Month,'|' ) )&amp;amp;')'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For 'OnSelect' and 'OnChange'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was working fine, until I tried to select all months to get the year values, then my selections are cleanup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The funny thing is that if I select 6 values out of 12 months, it works, if I select 7, it breaks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="trigger_q2.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/121264_trigger_q2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on how to solve this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco Arruda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Apr 2016 19:20:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-04-11T19:20:33Z</dc:date>
    <item>
      <title>Trigger function - getselectedcount and getfieldselections</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-function-getselectedcount-and-getfieldselections/m-p/1095662#M364012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello to all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used a trigger in the following field in my QVD:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="trigger_q1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/121262_trigger_q1.PNG" style="height: 518px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="trigger_q3.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/121263_trigger_q3.PNG" style="height: 181px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;The function used was: ='('&amp;amp;if(GetSelectedCount(Month)=0,vMonthName,GetFieldSelections(Month,'|' ) )&amp;amp;')'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For 'OnSelect' and 'OnChange'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was working fine, until I tried to select all months to get the year values, then my selections are cleanup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The funny thing is that if I select 6 values out of 12 months, it works, if I select 7, it breaks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="trigger_q2.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/121264_trigger_q2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on how to solve this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco Arruda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 19:20:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-function-getselectedcount-and-getfieldselections/m-p/1095662#M364012</guid>
      <dc:creator />
      <dc:date>2016-04-11T19:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger function - getselectedcount and getfieldselections</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-function-getselectedcount-and-getfieldselections/m-p/1095663#M364013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try this with a small modification:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;='('&amp;amp;if(GetSelectedCount(Month)=0,vMonthName,GetFieldSelections(Month,'|'&lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;, 12&lt;/SPAN&gt;) )&amp;amp;')'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 20:20:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-function-getselectedcount-and-getfieldselections/m-p/1095663#M364013</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-11T20:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger function - getselectedcount and getfieldselections</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-function-getselectedcount-and-getfieldselections/m-p/1095664#M364014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sunny T,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just tested it and looks like its working perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your support!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco Arruda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 12:16:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-function-getselectedcount-and-getfieldselections/m-p/1095664#M364014</guid>
      <dc:creator />
      <dc:date>2016-04-12T12:16:09Z</dc:date>
    </item>
  </channel>
</rss>

