<?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: Export objects to CSV using macros in Load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Export-objects-to-CSV-using-macros-in-Load-script/m-p/771621#M662438</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this macro&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;SUB ExportChartToCSV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim myCharts(2)&lt;/P&gt;&lt;P&gt;myCharts(0) = "Coat"&lt;/P&gt;&lt;P&gt;myCharts(1) = "Suit"&lt;/P&gt;&lt;P&gt;myCharts(2) = "Boxes"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;SPAN style="color: red;"&gt;For Each item In myCharts&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET&amp;nbsp; objChart = ActiveDocument.GetSheetObject(&lt;SPAN style="color: #ff0000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;item&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;objChart&lt;/SPAN&gt;.Export "C:\" &amp;amp; &lt;SPAN style="color: #ff0000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;item &amp;amp; "&lt;/SPAN&gt;.CSV", ", "&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Next&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;END &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;SUB&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Feb 2015 07:40:10 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2015-02-24T07:40:10Z</dc:date>
    <item>
      <title>Export objects to CSV using macros in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Export-objects-to-CSV-using-macros-in-Load-script/m-p/771614#M662422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a part of automating some QA processes I want to export some objects (their data of course) from my UI to csv files while the loading script executes. is that possible?&lt;/P&gt;&lt;P&gt;Also, is it possible when doing the reload phase, to use the macros to generate several selections on some filters and then make the export above?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Boris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 13:05:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-objects-to-CSV-using-macros-in-Load-script/m-p/771614#M662422</guid>
      <dc:creator />
      <dc:date>2015-02-23T13:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Export objects to CSV using macros in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Export-objects-to-CSV-using-macros-in-Load-script/m-p/771615#M662423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Verify STORE command on first point. Edit Script is &lt;A class="spell" href="https://www.google.com.br/search?espv=2&amp;amp;biw=1366&amp;amp;bih=643&amp;amp;q=asynchronous&amp;amp;spell=1&amp;amp;sa=X&amp;amp;ei=1eTrVIq_BcijNtqRgsAO&amp;amp;ved=0CBkQvwUoAA" style="font-size: 18px; color: #660099; font-family: arial, sans-serif;"&gt;&lt;STRONG&gt;&lt;EM&gt;synchronous&lt;/EM&gt;&lt;/STRONG&gt;&lt;/A&gt; process not &lt;A class="spell" href="https://www.google.com.br/search?espv=2&amp;amp;biw=1366&amp;amp;bih=643&amp;amp;q=asynchronous&amp;amp;spell=1&amp;amp;sa=X&amp;amp;ei=1eTrVIq_BcijNtqRgsAO&amp;amp;ved=0CBkQvwUoAA" style="font-size: 18px; color: #660099; font-family: arial, sans-serif;"&gt;&lt;STRONG&gt;&lt;EM&gt;asynchronous&lt;/EM&gt;&lt;/STRONG&gt;&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One Second point inside I don't understand what is the real question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 02:43:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-objects-to-CSV-using-macros-in-Load-script/m-p/771615#M662423</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-24T02:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Export objects to CSV using macros in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Export-objects-to-CSV-using-macros-in-Load-script/m-p/771616#M662425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, it is not possible to access any UI objects during the load script.&amp;nbsp; The ActiveDocument object, which is required to access any sheet objects, does not exist during the load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 05:25:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-objects-to-CSV-using-macros-in-Load-script/m-p/771616#M662425</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-02-24T05:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Export objects to CSV using macros in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Export-objects-to-CSV-using-macros-in-Load-script/m-p/771617#M662426</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;It is not possible to process the UI objects during script reload, what you can do is trigger the macros on post reload of the document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can trigger this by &lt;/P&gt;&lt;P&gt;Settings -&amp;gt; Document Properties -&amp;gt; Triggers -&amp;gt; Document Event Triggers -&amp;gt; On PostReload&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 05:49:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-objects-to-CSV-using-macros-in-Load-script/m-p/771617#M662426</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-02-24T05:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Export objects to CSV using macros in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Export-objects-to-CSV-using-macros-in-Load-script/m-p/771618#M662428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the info.&lt;/P&gt;&lt;P&gt;Is it possible to export objects to csv and not xls? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 07:17:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-objects-to-CSV-using-macros-in-Load-script/m-p/771618#M662428</guid>
      <dc:creator />
      <dc:date>2015-02-24T07:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Export objects to CSV using macros in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Export-objects-to-CSV-using-macros-in-Load-script/m-p/771619#M662429</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;Try this macro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SUB ExportChartToCSV&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET&amp;nbsp; objChart = ActiveDocument.GetSheetObject("CH01")&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;objChart&lt;/SPAN&gt;.Export "C:\Data.CSV", ", "&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;END &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;SUB&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;This saves the csv file in C drive.&amp;nbsp; Replace CH01 with your chart ID.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 07:26:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-objects-to-CSV-using-macros-in-Load-script/m-p/771619#M662429</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-02-24T07:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Export objects to CSV using macros in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Export-objects-to-CSV-using-macros-in-Load-script/m-p/771620#M662431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and do you think there is a way to create a loop to export all charts in the UI automatically?&lt;/P&gt;&lt;P&gt;a sub that will set the file name as the chart ID.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 07:31:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-objects-to-CSV-using-macros-in-Load-script/m-p/771620#M662431</guid>
      <dc:creator />
      <dc:date>2015-02-24T07:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Export objects to CSV using macros in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Export-objects-to-CSV-using-macros-in-Load-script/m-p/771621#M662438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this macro&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;SUB ExportChartToCSV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim myCharts(2)&lt;/P&gt;&lt;P&gt;myCharts(0) = "Coat"&lt;/P&gt;&lt;P&gt;myCharts(1) = "Suit"&lt;/P&gt;&lt;P&gt;myCharts(2) = "Boxes"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;SPAN style="color: red;"&gt;For Each item In myCharts&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET&amp;nbsp; objChart = ActiveDocument.GetSheetObject(&lt;SPAN style="color: #ff0000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;item&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;objChart&lt;/SPAN&gt;.Export "C:\" &amp;amp; &lt;SPAN style="color: #ff0000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;item &amp;amp; "&lt;/SPAN&gt;.CSV", ", "&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Next&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;END &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;SUB&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 07:40:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-objects-to-CSV-using-macros-in-Load-script/m-p/771621#M662438</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-02-24T07:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Export objects to CSV using macros in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Export-objects-to-CSV-using-macros-in-Load-script/m-p/771622#M662441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That means I need first to put all of my chart names into this array?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 07:43:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-objects-to-CSV-using-macros-in-Load-script/m-p/771622#M662441</guid>
      <dc:creator />
      <dc:date>2015-02-24T07:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Export objects to CSV using macros in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Export-objects-to-CSV-using-macros-in-Load-script/m-p/771623#M662444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can export a table to csv in the load script without a macro simply by using a store command with the (txt) qualifier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;store tablename into filename.csv (txt) ;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 07:52:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-objects-to-CSV-using-macros-in-Load-script/m-p/771623#M662444</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2015-02-24T07:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Export objects to CSV using macros in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Export-objects-to-CSV-using-macros-in-Load-script/m-p/771624#M662447</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 getting : Script line error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call ExportChartToCSV()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what could be the reason?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 14:14:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-objects-to-CSV-using-macros-in-Load-script/m-p/771624#M662447</guid>
      <dc:creator />
      <dc:date>2015-03-18T14:14:16Z</dc:date>
    </item>
  </channel>
</rss>

