<?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 text method for field values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/text-method-for-field-values/m-p/220495#M73404</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'm trying to write macros which works with bookmarks and got this problem: I'm using API to export all selected fields values to .txt file. I'm using this method:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;set bmm = ActiveDocument.GetBookmark("BM02") 'getting Bookmark object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;set&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;flditems=bmm.Bookmark.FieldItems 'getting active fields for Bookmark &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;set&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;BMFldValues = flditems.Item(i).Values 'getting selected values for field "Item(i)" for example it's DATE field &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;txsStream.Write BMFldValues.Item(j).number 'and I'm writing one of actual selected values in the DATE field to the file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT... in this way instead of date I got something like '36519' in my file instead of 25.12.1999, which is normal reaction for .number method. So, I'm trying to use method txsStream.Write BMFldValues.Item(j).text ... and here I got nothing, just an empty string in my file and in debug expression window.&lt;/P&gt;&lt;P&gt;So, how can I get text representation of numerical fields in API???&lt;/P&gt;&lt;P&gt;Thanks for help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Sep 2010 11:37:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-09-28T11:37:48Z</dc:date>
    <item>
      <title>text method for field values</title>
      <link>https://community.qlik.com/t5/QlikView/text-method-for-field-values/m-p/220495#M73404</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'm trying to write macros which works with bookmarks and got this problem: I'm using API to export all selected fields values to .txt file. I'm using this method:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;set bmm = ActiveDocument.GetBookmark("BM02") 'getting Bookmark object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;set&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;flditems=bmm.Bookmark.FieldItems 'getting active fields for Bookmark &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;set&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;BMFldValues = flditems.Item(i).Values 'getting selected values for field "Item(i)" for example it's DATE field &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;txsStream.Write BMFldValues.Item(j).number 'and I'm writing one of actual selected values in the DATE field to the file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT... in this way instead of date I got something like '36519' in my file instead of 25.12.1999, which is normal reaction for .number method. So, I'm trying to use method txsStream.Write BMFldValues.Item(j).text ... and here I got nothing, just an empty string in my file and in debug expression window.&lt;/P&gt;&lt;P&gt;So, how can I get text representation of numerical fields in API???&lt;/P&gt;&lt;P&gt;Thanks for help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 11:37:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/text-method-for-field-values/m-p/220495#M73404</guid>
      <dc:creator />
      <dc:date>2010-09-28T11:37:48Z</dc:date>
    </item>
    <item>
      <title>Re. :text method for field values</title>
      <link>https://community.qlik.com/t5/QlikView/text-method-for-field-values/m-p/220496#M73405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, have you looked to get date representation of numerical fields ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 14:23:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/text-method-for-field-values/m-p/220496#M73405</guid>
      <dc:creator>martin59</dc:creator>
      <dc:date>2010-09-28T14:23:39Z</dc:date>
    </item>
    <item>
      <title>Re. :text method for field values</title>
      <link>https://community.qlik.com/t5/QlikView/text-method-for-field-values/m-p/220497#M73406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Martin. Thanks a lot for answer.&lt;/P&gt;&lt;P&gt;No, I didnt see any "get date representation", dont even know what it is.&lt;/P&gt;&lt;P&gt;Can you tell me what is it or at least where I can find some info about this "get date representation"?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 14:52:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/text-method-for-field-values/m-p/220497#M73406</guid>
      <dc:creator />
      <dc:date>2010-09-28T14:52:09Z</dc:date>
    </item>
  </channel>
</rss>

