Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
gokulnath2592
Contributor III
Contributor III

Qliksense Mashups Image-Export

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

6 Replies
ganeshreddy
Creator III
Creator III

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

gokulnath2592
Contributor III
Contributor III
Author

Hi Ganesh,

Thanks for your reply, but I want to export Images from Mashups not to add the Images.

ganeshreddy
Creator III
Creator III

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

gokulnath2592
Contributor III
Contributor III
Author

Thanks Ganesh.

This code will export the data. But I also want that Image.

Thanks,

Gokul

stantrolav
Partner - Creator II
Partner - Creator II

Any solution for this been done? I'm too trying to do this.

Clever_Anjos
Employee
Employee