Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

paulcalvet
Contributor

Callback function for a measure

Hi everybody,

I search an example in order to load in a html page a KPI.

I created an hypercube with only one measure (from the master item libray)

Qlik generate a callback function :

function showDureeGrowth(reply, app){}

What should I write in order to load the KPI value on my web page ?

I found example for dropdown list but I don't know how to do for a single value :-(

Thanks !

Paul

1 Solution

Accepted Solutions
paulcalvet
Contributor

Re: Callback function for a measure

I finally found the solution :

The callback function :

//callbacks -- inserted here --

  function showDureeGrowth(reply, app){

  var output = reply.qHyperCube.qDataPages[0].qMatrix[0][0].qText;

  $("#val").text(output);

  }

and the html code :

<h2 id="val"></h2>

2 Replies
Highlighted
paulcalvet
Contributor

Re: Callback function for a measure

Please, nobody know how to return a single value in a callback function ?

Thanks.

Paul

paulcalvet
Contributor

Re: Callback function for a measure

I finally found the solution :

The callback function :

//callbacks -- inserted here --

  function showDureeGrowth(reply, app){

  var output = reply.qHyperCube.qDataPages[0].qMatrix[0][0].qText;

  $("#val").text(output);

  }

and the html code :

<h2 id="val"></h2>

Community Browser