Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
gugags6
Contributor
Contributor

How to export tables using javascript

Im totally newbie in Qliksense. I need to export so many tables in a only turn. My idea is create a extension using javascript, where  I reference all my tables in the code, and create a button. When I click on the button, all my tables will be exported in my directory C in xlsx  or csv format.

 

Im trying to  use the exportMethod, but I dont know how to reference my tables. I have no idea how to go on. Please, anyone has something like this to share?

Labels (1)
3 Replies
donk
Contributor
Contributor

Ping! I'm not clear on this either. Any help here?

Aiham_Azmeh
Employee
Employee

Hi,

In your extension, you should be able to use the `Visualization API` table property returned in the visualization model, ex:

const app = qlik.currApp(this);
app.visualization.get('your_table_visualization_id').then(visModel => {
  visModel.exportData({ format: 'OOXML', state: 'A' });
});

doc link > https://qlik.dev/apis/javascript/capabilities#%23%2Fdefinitions%2FQVisualization%2Fentries%2FexportD... 

donk
Contributor
Contributor

Thank you. I might be in the wrong section. I want to do this in a Qlik View extension and this looks like it's only for Qlik Sense. Is there a similar API I can use in Qlik View?

From an extension I would like to be able to access data in a table or list in CSV format to pass to an external API.