<?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: Set Text Value When Listbox Has Nothing Selected in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Text-Value-When-Listbox-Has-Nothing-Selected/m-p/704867#M254169</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like:&lt;/P&gt;&lt;P&gt;If(&lt;STRONG&gt;GetSelectedCount&lt;/STRONG&gt;(Attempt)=0, 'All', GetCurrentSelection(Attempt))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jul 2014 10:57:28 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2014-07-03T10:57:28Z</dc:date>
    <item>
      <title>Set Text Value When Listbox Has Nothing Selected</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Text-Value-When-Listbox-Has-Nothing-Selected/m-p/704865#M254167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hi all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I'm trying to build up a title dynamically and have the following code to generate the values from my 'Attempt' list box. &lt;BR /&gt;This is working, however when nothing is selected at all, I'd like the text to default to 'ALL'. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Is there any way to do this?&lt;BR /&gt;&lt;BR /&gt;Current code I'm using in the textbox expression is below.&lt;BR /&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;Attempt&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &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;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 10:50:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Text-Value-When-Listbox-Has-Nothing-Selected/m-p/704865#M254167</guid>
      <dc:creator />
      <dc:date>2014-07-03T10:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Set Text Value When Listbox Has Nothing Selected</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Text-Value-When-Listbox-Has-Nothing-Selected/m-p/704866#M254168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try like below&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(getSelectedCount(attempt)&amp;gt;0,getFieldSelections(attempt),'ALL')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 10:55:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Text-Value-When-Listbox-Has-Nothing-Selected/m-p/704866#M254168</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2014-07-03T10:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set Text Value When Listbox Has Nothing Selected</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Text-Value-When-Listbox-Has-Nothing-Selected/m-p/704867#M254169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like:&lt;/P&gt;&lt;P&gt;If(&lt;STRONG&gt;GetSelectedCount&lt;/STRONG&gt;(Attempt)=0, 'All', GetCurrentSelection(Attempt))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 10:57:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Text-Value-When-Listbox-Has-Nothing-Selected/m-p/704867#M254169</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-07-03T10:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set Text Value When Listbox Has Nothing Selected</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Text-Value-When-Listbox-Has-Nothing-Selected/m-p/704868#M254170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks but now it just seems to stay as 'ALL'. When I do make a selection the values don't show. It just stays as 'ALL'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 11:48:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Text-Value-When-Listbox-Has-Nothing-Selected/m-p/704868#M254170</guid>
      <dc:creator />
      <dc:date>2014-07-03T11:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set Text Value When Listbox Has Nothing Selected</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Text-Value-When-Listbox-Has-Nothing-Selected/m-p/704869#M254171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked. Thanks very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 11:55:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Text-Value-When-Listbox-Has-Nothing-Selected/m-p/704869#M254171</guid>
      <dc:creator />
      <dc:date>2014-07-03T11:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set Text Value When Listbox Has Nothing Selected</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Text-Value-When-Listbox-Has-Nothing-Selected/m-p/704870#M254172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you select any thing in Attempt then that will be shown else 'ALL'&amp;nbsp; will be shown ,&lt;/P&gt;&lt;P&gt;what you are getting and what you want exactly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 11:55:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Text-Value-When-Listbox-Has-Nothing-Selected/m-p/704870#M254172</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2014-07-03T11:55:23Z</dc:date>
    </item>
  </channel>
</rss>

