<?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 Retrieve values from Fields having numbers in Macro in Water Cooler</title>
    <link>https://community.qlik.com/t5/Water-Cooler/Retrieve-values-from-Fields-having-numbers-in-Macro/m-p/354124#M915</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks for the reply. But this didnt work. Actually in my database the userId field have both strings and numerals. But i need just the numeric userIds. So in my load script i am loading only the userIds which are numeric in the filed userId&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load if(isnum(userID),userID) as userId&lt;/P&gt;&lt;P&gt;resident userTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am then trying to access the values of this field in macro and some how getting an error at &lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("userId").GetPossibleValues()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Mar 2012 09:58:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-03-15T09:58:48Z</dc:date>
    <item>
      <title>Retrieve values from Fields having numbers in Macro</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Retrieve-values-from-Fields-having-numbers-in-Macro/m-p/354122#M913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;I have a field of numeric userIds in my qvw document. I am not able to get the values of this field in the macro using&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("userId").GetPossibleValues().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody please let me know if I am missing something&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Ashwini &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 09:40:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Retrieve-values-from-Fields-having-numbers-in-Macro/m-p/354122#M913</guid>
      <dc:creator />
      <dc:date>2012-03-15T09:40:14Z</dc:date>
    </item>
    <item>
      <title>Retrieve values from Fields having numbers in Macro</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Retrieve-values-from-Fields-having-numbers-in-Macro/m-p/354123#M914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Check with this&lt;/P&gt;&lt;P&gt;set val=ActiveDocument.Fields("Month").GetPossibleValues&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;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 09:50:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Retrieve-values-from-Fields-having-numbers-in-Macro/m-p/354123#M914</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-03-15T09:50:09Z</dc:date>
    </item>
    <item>
      <title>Retrieve values from Fields having numbers in Macro</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Retrieve-values-from-Fields-having-numbers-in-Macro/m-p/354124#M915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks for the reply. But this didnt work. Actually in my database the userId field have both strings and numerals. But i need just the numeric userIds. So in my load script i am loading only the userIds which are numeric in the filed userId&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load if(isnum(userID),userID) as userId&lt;/P&gt;&lt;P&gt;resident userTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am then trying to access the values of this field in macro and some how getting an error at &lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("userId").GetPossibleValues()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 09:58:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Retrieve-values-from-Fields-having-numbers-in-Macro/m-p/354124#M915</guid>
      <dc:creator />
      <dc:date>2012-03-15T09:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve values from Fields having numbers in Macro</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Retrieve-values-from-Fields-having-numbers-in-Macro/m-p/354125#M916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Check with this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set val=ActiveDocument.Fields("userId").GetPossibleValues&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;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 10:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Retrieve-values-from-Fields-having-numbers-in-Macro/m-p/354125#M916</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-03-15T10:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve values from Fields having numbers in Macro</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Retrieve-values-from-Fields-having-numbers-in-Macro/m-p/354126#M917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; What error you are getting?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 10:04:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Retrieve-values-from-Fields-having-numbers-in-Macro/m-p/354126#M917</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-03-15T10:04:00Z</dc:date>
    </item>
    <item>
      <title>Retrieve values from Fields having numbers in Macro</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Retrieve-values-from-Fields-having-numbers-in-Macro/m-p/354127#M918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I am not getting any error. when i run the macro it just stops at that line and does not execute further. I think the problem is that it is fetching a large data. The field userId has 437 userId in it. Is this the cause.. Can you suggest a way to handle this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Ashwini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 10:13:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Retrieve-values-from-Fields-having-numbers-in-Macro/m-p/354127#M918</guid>
      <dc:creator />
      <dc:date>2012-03-15T10:13:29Z</dc:date>
    </item>
  </channel>
</rss>

