Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

gokulnath2592
New 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
Contributor III

Re: Qliksense Mashups Image-Export

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
New Contributor III

Re: Qliksense Mashups Image-Export

Hi Ganesh,

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

ganeshreddy
Contributor III

Re: Qliksense Mashups Image-Export

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
New Contributor III

Re: Qliksense Mashups Image-Export

Thanks Ganesh.

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

Thanks,

Gokul

stantrolav
Contributor II

Re: Qliksense Mashups Image-Export

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

Employee
Employee

Re: Qliksense Mashups Image-Export