Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am workin on a Mashup, where I want to include the option to dowload the information in an object as an excel. But I also want to dowload this object in a PDF.
The method exportData() is working fine. The way I use it is as follows:
I create the variable:
Can you please use the code below?
$rootScope.global.apps[$rootScope.app].app.visualization.get(qlikid).then(function(object){
var settings = {
...
};
object.exportPdf(settings).then(function (result) {
console.log('PDF download link: ', result);
})
})
Hi @JohnIssue , please see our help site on this method where you can find an example on how to use exportPDF method from a visualization.
@alex_colombo Thank you very much! Anyway, even having seen it, I do not know still how can I make it work
I guess you want to export a Qlik visualization into a PDF, am I right? If so, you have to first get the object with getObject method, then use exportPDF method on the response, as per the example in our help site.
I mean, I am using:
Are you building a mashup or an extension? Method global.qlik.table is using for accesing table used by an extension object. Can you share the entire code?
Can you please use the code below?
$rootScope.global.apps[$rootScope.app].app.visualization.get(qlikid).then(function(object){
var settings = {
...
};
object.exportPdf(settings).then(function (result) {
console.log('PDF download link: ', result);
})
})
It seems to work fine, thank you very much!!