<?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: Listbox Default No Selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Listbox-Default-No-Selection/m-p/499376#M186621</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did that, but now the field shows always.&amp;nbsp; Whether it's selected, greyed or there is no selection made in the lsitbox.&amp;nbsp; If there are no GREEN selections in the listbox, I want NONE of the fields listed to show.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Oct 2013 18:46:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-21T18:46:03Z</dc:date>
    <item>
      <title>Listbox Default No Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Listbox-Default-No-Selection/m-p/499372#M186617</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;I have a list box that is tied to a straight table.&amp;nbsp; I want only the items in the listbox which are selected to show as columns in the table.&amp;nbsp; This part I have figured out. However, I know that with QlikView, no selection in a listbox essentially means "select all".&amp;nbsp; Since I have over 200 possible selections for fields to show on the report, I actually want no selection in my listbox to show NO fields at all.&amp;nbsp; Is there any way I can accomplish this?&amp;nbsp; I have not been able to find a setting or anything of the like.&amp;nbsp; I do not want to do "always one selection" because a user should be able to choose as many as they want and there should be no "default".&amp;nbsp; The "default" should be to show no fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 18:03:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Listbox-Default-No-Selection/m-p/499372#M186617</guid>
      <dc:creator />
      <dc:date>2013-10-21T18:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox Default No Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Listbox-Default-No-Selection/m-p/499373#M186618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kerri,&lt;/P&gt;&lt;P&gt;What are the conditions to show columns?&amp;nbsp; If you base conditions on GetFieldSelections() - you shouldn't have this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 18:14:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Listbox-Default-No-Selection/m-p/499373#M186618</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-21T18:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox Default No Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Listbox-Default-No-Selection/m-p/499374#M186619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Each possible column (all 200+ of them) is it's own expression in the table with the conditional show like this: SubStringCount(Concat([_GenProjField], '|'),'INDUSTRYSEGMENT').&amp;nbsp; If there is a better way you know of I can do this, please, I'd like to hear it!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 18:29:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Listbox-Default-No-Selection/m-p/499374#M186619</guid>
      <dc:creator />
      <dc:date>2013-10-21T18:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox Default No Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Listbox-Default-No-Selection/m-p/499375#M186620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just replace concat with GetFielldSelections, and you'll by fine, I think:&lt;/P&gt;&lt;P&gt;SubStringCount(&lt;STRONG&gt;GetFieldSelections&lt;/STRONG&gt;([_GenProjField], '|'),'INDUSTRYSEGMENT').&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 18:34:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Listbox-Default-No-Selection/m-p/499375#M186620</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-21T18:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox Default No Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Listbox-Default-No-Selection/m-p/499376#M186621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did that, but now the field shows always.&amp;nbsp; Whether it's selected, greyed or there is no selection made in the lsitbox.&amp;nbsp; If there are no GREEN selections in the listbox, I want NONE of the fields listed to show.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 18:46:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Listbox-Default-No-Selection/m-p/499376#M186621</guid>
      <dc:creator />
      <dc:date>2013-10-21T18:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox Default No Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Listbox-Default-No-Selection/m-p/499377#M186622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I missed one nuance.&amp;nbsp; You have a rather large number of values in the [_GenProjField].&amp;nbsp; If it is &amp;gt;200, change the expression a little:&lt;/P&gt;&lt;P&gt;SubStringCount(GetFieldSelections([_GenProjField], '|', &lt;STRONG&gt;300&lt;/STRONG&gt;),'INDUSTRYSEGMENT').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To see how it works and to troubleshoot, create two text boxes.&lt;BR /&gt;=Concat([_GenProjField], '|')&lt;/P&gt;&lt;P&gt;=GetFieldSelections([_GenProjField], '|', 300)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And make selections in the list box.&amp;nbsp; The results in the two text boxes should be identical, except there should be nothing in the 2nd if nothing is selected.&lt;/P&gt;&lt;P&gt;Let me know what you see.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 18:55:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Listbox-Default-No-Selection/m-p/499377#M186622</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-21T18:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox Default No Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Listbox-Default-No-Selection/m-p/499378#M186623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The 1st text box is showing the correct values, except when no selection is made.&amp;nbsp; The second text box shows only '-' no matter the selection (or lack thereof).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 18:59:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Listbox-Default-No-Selection/m-p/499378#M186623</guid>
      <dc:creator />
      <dc:date>2013-10-21T18:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox Default No Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Listbox-Default-No-Selection/m-p/499379#M186624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure there is no mistyping in your text box?&amp;nbsp; I know for sure that the function works.&amp;nbsp; Unless you have a rather old QV version...&lt;/P&gt;&lt;P&gt;Can you upload an example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 19:05:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Listbox-Default-No-Selection/m-p/499379#M186624</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-21T19:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Listbox Default No Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Listbox-Default-No-Selection/m-p/499380#M186625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have found the issue and have it showing the correct selection (my selection value is actually different than the field name behind it)... but where do I put this conditional?&amp;nbsp; I have uploaded my full example (it's rather complex) and I'm not sure where on the table to place this condition so that only the selected fields show in the table.&amp;nbsp; The listbox(es) I'm using is the container titled "Available Fields".&amp;nbsp; I currently have each one of these fields as an expression in my table, but maybe that's not the correct solution here.&amp;nbsp; Thanks for your help!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 19:36:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Listbox-Default-No-Selection/m-p/499380#M186625</guid>
      <dc:creator />
      <dc:date>2013-10-21T19:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Listbox Default No Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Listbox-Default-No-Selection/m-p/499381#M186626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, if you use one field in selection and another in condition, my approach is not going to work.&amp;nbsp; So, you either use the same field in both places (as I thought you did), or stay with concat() function but add additional condition for "there are selections".&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1. If you're willing to use the same field in the expression condition which you use in selection, it will be (for the same INDUSTRYSEGMENT expression):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;index(GetFieldSelections(%_GenProjText, '|',300),'Industry Segment')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Notice that I use index() instead of substringcount() - it never returns '-'.&amp;nbsp; It will be 0 if there is no matching string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If you want to keep two different fields in selection and in condition, you have to stay with concat(), but I recommend to switch to &lt;STRONG&gt;index()&lt;/STRONG&gt; too, and add conditions for selections:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;index(Concat([_GenProjField], '|'),'INDUSTRYSEGMENT')&amp;gt;0 and GetSelectedCount(%_GenProjText)&amp;gt;0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this time it helps... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 20:06:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Listbox-Default-No-Selection/m-p/499381#M186626</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-21T20:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox Default No Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Listbox-Default-No-Selection/m-p/499382#M186627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The reason I am using 2 fields is because in the selection the user wants to see the real text but in the report, they want to see the database field name.  I realize this of course complicates things, but it is the requirement nonetheless.  I will try your solution tomorrow and get back to you.  Thanks again for the help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from my mobile device&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 21:36:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Listbox-Default-No-Selection/m-p/499382#M186627</guid>
      <dc:creator />
      <dc:date>2013-10-21T21:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox Default No Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Listbox-Default-No-Selection/m-p/499383#M186628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have discovered the solution I need.&amp;nbsp; For each field which is dynamic, which I have identified individually as its own expression, I need to put this as the conditions presentation: SubStringCount(GetFieldSelections([%_GenProjText], '|'),'Associated Form Factors')=1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If no selection is made in the listbox (all entries are WHITE), no columns will show.&amp;nbsp; Only those which are selected as GREEN will show.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you Mike for your assistance in getting me to this point, it was most helpful.&amp;nbsp; Hope this helps someone else out in the future as well!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 13:06:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Listbox-Default-No-Selection/m-p/499383#M186628</guid>
      <dc:creator />
      <dc:date>2013-10-22T13:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Listbox Default No Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Listbox-Default-No-Selection/m-p/499384#M186629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ended up going with solution #2 here - it worked well for what I needed to accomplish.&amp;nbsp; Thanks so much for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 14:41:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Listbox-Default-No-Selection/m-p/499384#M186629</guid>
      <dc:creator />
      <dc:date>2013-10-23T14:41:15Z</dc:date>
    </item>
  </channel>
</rss>

