<?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 GetPossibleValues returns no value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/GetPossibleValues-returns-no-value/m-p/266941#M100267</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a macro which loops through a table of salesreps and emails them a report. I use the GetPossibleValues function to get the relevant email address for the salesperson from the rep table. I am striking a problem when the email address is blank in the table and therefore the GetPossibleValues does not return a value. This results in a macro error. If there is a null value returned then I'd like to use a generic email address instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there some command to identify that no value has been returned and take some alternate action?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Sep 2011 03:40:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-09-16T03:40:32Z</dc:date>
    <item>
      <title>GetPossibleValues returns no value</title>
      <link>https://community.qlik.com/t5/QlikView/GetPossibleValues-returns-no-value/m-p/266941#M100267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a macro which loops through a table of salesreps and emails them a report. I use the GetPossibleValues function to get the relevant email address for the salesperson from the rep table. I am striking a problem when the email address is blank in the table and therefore the GetPossibleValues does not return a value. This results in a macro error. If there is a null value returned then I'd like to use a generic email address instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there some command to identify that no value has been returned and take some alternate action?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 03:40:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetPossibleValues-returns-no-value/m-p/266941#M100267</guid>
      <dc:creator />
      <dc:date>2011-09-16T03:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: GetPossibleValues returns no value</title>
      <link>https://community.qlik.com/t5/QlikView/GetPossibleValues-returns-no-value/m-p/266942#M100268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;After getting possible values before accessing the values you can check for the count&lt;/P&gt;&lt;P&gt;sub getp()&lt;/P&gt;&lt;P&gt;set val=ActiveDocument.Fields("F3").GetPossibleValues&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if val.Count=0 then msgbox "hi"&lt;/P&gt;&lt;P&gt;for i=0 to val.Count-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgbox(val.Item(i).Text)&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;incase the count is ZERO assing the default mail id.&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 06:56:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetPossibleValues-returns-no-value/m-p/266942#M100268</guid>
      <dc:creator />
      <dc:date>2011-09-16T06:56:12Z</dc:date>
    </item>
    <item>
      <title>GetPossibleValues returns no value</title>
      <link>https://community.qlik.com/t5/QlikView/GetPossibleValues-returns-no-value/m-p/266943#M100269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or you could fill in blanks in the script with a map....using statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 07:00:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetPossibleValues-returns-no-value/m-p/266943#M100269</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2011-09-16T07:00:15Z</dc:date>
    </item>
  </channel>
</rss>

