<?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 Adding row when exporting table to text file with macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Adding-row-when-exporting-table-to-text-file-with-macro/m-p/587595#M217895</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'm trying to write the data from a table to a txt-file on the server.&lt;/P&gt;&lt;P&gt;This works fine with the code below:&lt;/P&gt;&lt;P&gt;Sub test&lt;/P&gt;&lt;P&gt;&amp;nbsp; set tb = ActiveDocument.GetSheetObject("TB01")&lt;/P&gt;&lt;P&gt;&amp;nbsp; tb.ServerSideExportEx "H:\QlikView\Writeback_Excel\UserLogons.txt" , ";" , 1&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It gives me the following text file:&lt;/P&gt;&lt;P&gt;Date;USID&lt;/P&gt;&lt;P&gt;2014-03-17;Daniel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like to do is add another row with data that is not existing i the table.&lt;/P&gt;&lt;P&gt;I thought I could do something like the example below but the script wont run:&lt;/P&gt;&lt;P&gt;Sub test&lt;/P&gt;&lt;P&gt;&amp;nbsp; set tb = ActiveDocument.GetSheetObject("TB01")&lt;/P&gt;&lt;P&gt;&amp;nbsp; tb = tb &amp;amp; "2014-03-18;Sandra"&lt;/P&gt;&lt;P&gt;&amp;nbsp; tb.ServerSideExportEx "H:\QlikView\Writeback_Excel\UserLogons.txt" , ";" , 1&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Mar 2014 11:31:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-18T11:31:55Z</dc:date>
    <item>
      <title>Adding row when exporting table to text file with macro</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-row-when-exporting-table-to-text-file-with-macro/m-p/587595#M217895</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'm trying to write the data from a table to a txt-file on the server.&lt;/P&gt;&lt;P&gt;This works fine with the code below:&lt;/P&gt;&lt;P&gt;Sub test&lt;/P&gt;&lt;P&gt;&amp;nbsp; set tb = ActiveDocument.GetSheetObject("TB01")&lt;/P&gt;&lt;P&gt;&amp;nbsp; tb.ServerSideExportEx "H:\QlikView\Writeback_Excel\UserLogons.txt" , ";" , 1&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It gives me the following text file:&lt;/P&gt;&lt;P&gt;Date;USID&lt;/P&gt;&lt;P&gt;2014-03-17;Daniel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like to do is add another row with data that is not existing i the table.&lt;/P&gt;&lt;P&gt;I thought I could do something like the example below but the script wont run:&lt;/P&gt;&lt;P&gt;Sub test&lt;/P&gt;&lt;P&gt;&amp;nbsp; set tb = ActiveDocument.GetSheetObject("TB01")&lt;/P&gt;&lt;P&gt;&amp;nbsp; tb = tb &amp;amp; "2014-03-18;Sandra"&lt;/P&gt;&lt;P&gt;&amp;nbsp; tb.ServerSideExportEx "H:\QlikView\Writeback_Excel\UserLogons.txt" , ";" , 1&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 11:31:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-row-when-exporting-table-to-text-file-with-macro/m-p/587595#M217895</guid>
      <dc:creator />
      <dc:date>2014-03-18T11:31:55Z</dc:date>
    </item>
  </channel>
</rss>

