<?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: GetFieldSelections() function's return after wild card search was used in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-function-s-return-after-wild-card-search-was/m-p/701591#M538420</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok thanks.&amp;nbsp; Just&amp;nbsp; in case you were not aware if none are selected you can capture that situation with this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (&amp;nbsp;&amp;nbsp; getselectedcount( Values) = 0 , ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to invoke the calculation conditionally.&amp;nbsp; getpossiblecount( Values)&amp;nbsp; can also be handy in these situations to figure out the count when other fields have selections and some Values are in white and others in grey.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Sep 2014 18:50:38 GMT</pubDate>
    <dc:creator>JonnyPoole</dc:creator>
    <dc:date>2014-09-15T18:50:38Z</dc:date>
    <item>
      <title>GetFieldSelections() function's return after wild card search was used</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-function-s-return-after-wild-card-search-was/m-p/701588#M538417</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;In my application I am using a string that is generated by GetFieldSelections() function.&lt;/P&gt;&lt;P&gt;It works fine if I am selecting items in the list box directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've noticed that if I am using the wild card search and pressing Enter, than all desired items are displayed selected, but the GetFieldSelections() function returns just an entered search string:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="66790" alt="QV_wild_card_getfield_selection.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/66790_QV_wild_card_getfield_selection.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="66797" alt="QV_wild_card_getfield_selection_2.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/66797_QV_wild_card_getfield_selection_2.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clicking on any of selected items, or adding new item to selected list resets the GetFieldSelections() string to desired value:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="66798" alt="QV_wild_card_getfield_selection3.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/66798_QV_wild_card_getfield_selection3.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions how to achieve it with just using the wildcard search option?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Vladimir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 18:08:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-function-s-return-after-wild-card-search-was/m-p/701588#M538417</guid>
      <dc:creator>vlad_komarov</dc:creator>
      <dc:date>2014-09-15T18:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections() function's return after wild card search was used</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-function-s-return-after-wild-card-search-was/m-p/701589#M538418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i would suggest using concat (distinct&amp;nbsp; &amp;lt;fieldname&amp;gt;)&amp;nbsp;&amp;nbsp; to bring back a pipe delimitted list of unique selected values;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:&amp;nbsp; = concat( DISTINCT Year, '|')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 18:21:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-function-s-return-after-wild-card-search-was/m-p/701589#M538418</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-15T18:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections() function's return after wild card search was used</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-function-s-return-after-wild-card-search-was/m-p/701590#M538419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, it works, but I am keeping this option as a last resort due to performance issues with using concat().&lt;/P&gt;&lt;P&gt;Plus I have to separately handle the case when no items are selected, which is adding more burden on app's performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vladimir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 18:43:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-function-s-return-after-wild-card-search-was/m-p/701590#M538419</guid>
      <dc:creator>vlad_komarov</dc:creator>
      <dc:date>2014-09-15T18:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections() function's return after wild card search was used</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-function-s-return-after-wild-card-search-was/m-p/701591#M538420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok thanks.&amp;nbsp; Just&amp;nbsp; in case you were not aware if none are selected you can capture that situation with this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (&amp;nbsp;&amp;nbsp; getselectedcount( Values) = 0 , ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to invoke the calculation conditionally.&amp;nbsp; getpossiblecount( Values)&amp;nbsp; can also be handy in these situations to figure out the count when other fields have selections and some Values are in white and others in grey.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 18:50:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-function-s-return-after-wild-card-search-was/m-p/701591#M538420</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-15T18:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections() function's return after wild card search was used</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-function-s-return-after-wild-card-search-was/m-p/701592#M538421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it's pretty much how I am doing that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 19:33:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-function-s-return-after-wild-card-search-was/m-p/701592#M538421</guid>
      <dc:creator>vlad_komarov</dc:creator>
      <dc:date>2014-09-15T19:33:39Z</dc:date>
    </item>
  </channel>
</rss>

