<?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([Text Field]) not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-Text-Field-not-working/m-p/482174#M180201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Getfieldselections returns the actual selected values. If you use the return value of getfieldselections as a boolean, i.e. True or False, like you do in your if statement then any number other than 0 is evaluated as True. Text values are evaluated as False. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you can do instead is use the getselectedcount function: &lt;EM&gt;if(GetSelectedCount([Project Name]),1,0)&lt;/EM&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually since the expression for Show Conditional should return True or False you can leave out the if statement and use just &lt;EM&gt;GetSelectedCount([Project Name])&lt;/EM&gt;. If there are selections in Project Name then getselectedcount will be larger than 0, i.e. True. If there are no selections then 0 is returned, i.e. False.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 11 Aug 2013 08:59:05 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-08-11T08:59:05Z</dc:date>
    <item>
      <title>(GetFieldSelections([Text Field]) not working</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-Text-Field-not-working/m-p/482173#M180200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Masters,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using SHOW CONDITIONAL in a Table Box that I only want it to appear when the user has selected a value from a List Box.&lt;/P&gt;&lt;P&gt;It works well with a numeric field, but it does not work with a text field.&amp;nbsp; Any idea how to resolve it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&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;[Project Number]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),1,0) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN id="mce_marker"&gt;&lt;SPAN id="mce_marker"&gt;&lt;SPAN id="mce_marker"&gt;&lt;/SPAN&gt;This DOES NOT work:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;=if(GetFieldSelections([Project Name]),1,0)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;﻿&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;Thanks in advance for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Aug 2013 08:32:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-Text-Field-not-working/m-p/482173#M180200</guid>
      <dc:creator />
      <dc:date>2013-08-11T08:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: (GetFieldSelections([Text Field]) not working</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-Text-Field-not-working/m-p/482174#M180201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Getfieldselections returns the actual selected values. If you use the return value of getfieldselections as a boolean, i.e. True or False, like you do in your if statement then any number other than 0 is evaluated as True. Text values are evaluated as False. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you can do instead is use the getselectedcount function: &lt;EM&gt;if(GetSelectedCount([Project Name]),1,0)&lt;/EM&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually since the expression for Show Conditional should return True or False you can leave out the if statement and use just &lt;EM&gt;GetSelectedCount([Project Name])&lt;/EM&gt;. If there are selections in Project Name then getselectedcount will be larger than 0, i.e. True. If there are no selections then 0 is returned, i.e. False.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Aug 2013 08:59:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-Text-Field-not-working/m-p/482174#M180201</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-08-11T08:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: (GetFieldSelections([Text Field]) not working</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-Text-Field-not-working/m-p/482175#M180202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked perfectly!&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks a tonsssss&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Aug 2013 16:48:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-Text-Field-not-working/m-p/482175#M180202</guid>
      <dc:creator />
      <dc:date>2013-08-11T16:48:33Z</dc:date>
    </item>
  </channel>
</rss>

