<?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: Macro Button: ExportChartToCSV from QlikView Dashboard To Any Location in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-Button-ExportChartToCSV-from-QlikView-Dashboard-To-Any/m-p/1687145#M726689</link>
    <description>&lt;P&gt;I tried following the example shown in the link you posted, but I am getting an error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have written to the author of that post to see if he can reply.&lt;/P&gt;&lt;P&gt;Thanks for the answer though!&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;Nissar&lt;/P&gt;</description>
    <pubDate>Mon, 23 Mar 2020 23:06:45 GMT</pubDate>
    <dc:creator>Nissar</dc:creator>
    <dc:date>2020-03-23T23:06:45Z</dc:date>
    <item>
      <title>Macro Button: ExportChartToCSV from QlikView Dashboard To Any Location</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Button-ExportChartToCSV-from-QlikView-Dashboard-To-Any/m-p/1686994#M726687</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a QlikView Application with lots of objects, one of them being a straight table.&lt;/P&gt;&lt;P&gt;I have created a macro button called "Generate Invoice File" in the application using the following code in the module:&lt;/P&gt;&lt;P&gt;SUB ExportChartToCSV&lt;/P&gt;&lt;P&gt;SET objChart = ActiveDocument.GetSheetObject("INVOICE")&lt;/P&gt;&lt;P&gt;objChart.Export "C:\Desktop\INVOICE.csv", ","&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;P&gt;Scripting Engine is set to VBScript&lt;/P&gt;&lt;P&gt;Requested Module Security is set to System Access&lt;/P&gt;&lt;P&gt;Current Local Security is set to Allow System Access&lt;/P&gt;&lt;P&gt;When pressing the&amp;nbsp;"Generate Invoice File" button from my QlikView desktop client, a CSV file is generated on my desktop called Invoice.csv. So far so good.&lt;/P&gt;&lt;P&gt;However, the purpose of this QlikView Application is for the end users in the organization to generate CSV files for their respective customers, through the web-based QlikView Dashoard.&lt;/P&gt;&lt;P&gt;Basically, the end users should be able to press the "Generate Invoice File" button from the web-based QlikView Dashboard, and have a&amp;nbsp;INVOICE.csv generated, but instead of saving it to their desktop or a specific predefined location, I want them to be prompted on where to save the file.&lt;/P&gt;&lt;P&gt;At the moment, even pressing the macro button from the web-based QlikView Dashboard it doesn't do anything, not even creating the INVOICE.csv file on my desktop. But this is less relevant, because I want to get a pop-up on where to save the file.&lt;/P&gt;&lt;P&gt;There is a work around though, where I have to right click on the upper right corner of the straight table, then press export and get a prompt on where to save the CSV file. Is there a way to have a macro button do that?&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;Nissar&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:54:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Button-ExportChartToCSV-from-QlikView-Dashboard-To-Any/m-p/1686994#M726687</guid>
      <dc:creator>Nissar</dc:creator>
      <dc:date>2024-11-16T18:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Button: ExportChartToCSV from QlikView Dashboard To Any Location</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Button-ExportChartToCSV-from-QlikView-Dashboard-To-Any/m-p/1687127#M726688</link>
      <description>&lt;P&gt;The web-based AJAX client doesn't support macros. I think you can right click anywhere on the table to export. That's probably the most reliable way to export in AJAX.&lt;/P&gt;&lt;P&gt;If you really want a button... you can look at this option:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Documents/Useful-Qlikview-Javascript-for-Chrome-Ajax-client/ta-p/1682616" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Documents/Useful-Qlikview-Javascript-for-Chrome-Ajax-client/ta-p/1682616&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 21:24:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Button-ExportChartToCSV-from-QlikView-Dashboard-To-Any/m-p/1687127#M726688</guid>
      <dc:creator>MikeW</dc:creator>
      <dc:date>2020-03-23T21:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Button: ExportChartToCSV from QlikView Dashboard To Any Location</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Button-ExportChartToCSV-from-QlikView-Dashboard-To-Any/m-p/1687145#M726689</link>
      <description>&lt;P&gt;I tried following the example shown in the link you posted, but I am getting an error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have written to the author of that post to see if he can reply.&lt;/P&gt;&lt;P&gt;Thanks for the answer though!&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;Nissar&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 23:06:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Button-ExportChartToCSV-from-QlikView-Dashboard-To-Any/m-p/1687145#M726689</guid>
      <dc:creator>Nissar</dc:creator>
      <dc:date>2020-03-23T23:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Button: ExportChartToCSV from QlikView Dashboard To Any Location</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Button-ExportChartToCSV-from-QlikView-Dashboard-To-Any/m-p/1693478#M726690</link>
      <description>&lt;P&gt;Check out the following Help link, click the Actions link on the right side to jump to that section of the Help, scroll down to the Export action, that should put you the right track for a button export.&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Button2.htm#anchor-3" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Button2.htm#anchor-3&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The issue with export in Ajax, is server-side v client-side, you have to use the ExportEx API I believe.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 21:21:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Button-ExportChartToCSV-from-QlikView-Dashboard-To-Any/m-p/1693478#M726690</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-04-14T21:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Button: ExportChartToCSV from QlikView Dashboard To Any Location</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Button-ExportChartToCSV-from-QlikView-Dashboard-To-Any/m-p/1693488#M726691</link>
      <description>&lt;P&gt;The action export only exports a table in the data model, not straight table charts. I don't think it works in ajax either. ExportEx is VB macro and is not supported in Ajax.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 21:50:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Button-ExportChartToCSV-from-QlikView-Dashboard-To-Any/m-p/1693488#M726691</guid>
      <dc:creator>MikeW</dc:creator>
      <dc:date>2020-04-14T21:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Button: ExportChartToCSV from QlikView Dashboard To Any Location</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Button-ExportChartToCSV-from-QlikView-Dashboard-To-Any/m-p/1693751#M726692</link>
      <description>&lt;P&gt;Mike, you are incorrect in your statement that VB macro is unsupported in Ajax, some of the APIs will work, the main issue in Ajax is as I stated previously, if the API is client-side, then it will not work, but if the API is server-side, things will work.&lt;/P&gt;&lt;P&gt;Macros in general should be a last resort in that macros do force a single-thread condition, which causes poor performance, but if that is the only way to do things...&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do agree, the best option is the caption bar Excel option to do the export, and if everything needs to be CSV, the following setting could be added to the QVS settings.ini within the [Settings 7] section:&lt;/P&gt;&lt;P&gt;RowLimitForCsvInsteadOfXls=x where x is the number of rows, but this will impact the entire environment, so if you want people to be able to do Xls, then modifying this is not likely the right solution either.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 15:36:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Button-ExportChartToCSV-from-QlikView-Dashboard-To-Any/m-p/1693751#M726692</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-04-15T15:36:10Z</dc:date>
    </item>
  </channel>
</rss>

