Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
Is there any possible way to export Mashups images.
I have created a mashup page and published it. I want to export the Images in Mashup.
Thanks in advance
Regards,
Gokul
Hi Gokul,
We had same issue few months before and overcome that issue by placing all necessary images in default image path and pointed the same image path in mashup.
Default image path : //C:..\..\Qlik\Sense\Content\default\Qlik_default_leaf.png
Note: please avoid creating a separate image folder in project mashup folder. We tried it before with no success.
Thanks,
Ganesh
Hi Ganesh,
Thanks for your reply, but I want to export Images from Mashups not to add the Images.
Sorry I misread your post Gokul,
I did similar implementation earlier like exporting qlik object, please go through the given code, it may help you.
function callbackExport(){
console.log("Exported successfully");
}
User.exportObject = function(jsObj, qvObj){
if(jsObj == undefined)
return;
console.log("Selected Object");
console.log(jsObj);
app.getObject(jsObj, qvObj).then(function(retObj){
//retObj.exportData("CSV_C");
/* exportObjOptions = {
//format:'OOXML',
//filename:'filename'+(new Date().getTime()),
//download:true
};
retObj.exportData(exportObjOptions,callbackExport ); */
var exportConfig = {
download: true,
filename: 'my-export',
format: 'OOXML'
};
/* retObj.exportData(exportConfig, function ( reply ) {
console.log( 'Created export file: ', reply );
}); */
//retObj.exportData({download: true});
retObj.exportData( 'CSV_C', '/qHyperCubeDef', 'line chart WITH P', 'P').then(function(c){
var d = "../.." + c.result.qUrl;
exportConfig.download && window.open(d), callbackExport && callbackExport(d)
});
});
};
User.checkUserSession();
$('.exportChart').on('click',function(event){
console.log($(this).html());
var href = $(this).attr('href');
href = href.replace("#", "");
User.exportObject( href ,'BjqzLp' );
});
ref: exportData method ‒ Qlik Sense
Thanks,
Ganesh
Thanks Ganesh.
This code will export the data. But I also want that Image.
Thanks,
Gokul
Any solution for this been done? I'm too trying to do this.
You can try this: Capturing Image of Qlik Sense Objects in Mashups