Qlik Community

Qlik Sense Integration, Extensions, & APIs

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

dhdezrino
New Contributor II

Retrieving a Hypercube from an object then reusing it on another object

Good morning everyone,

We need to retrieve the hypercube from an object to use it on custom javascript objects, so far we managed to properly extract the data as if we were creating the hypercube via code, but we can't manage to make the hypercube change with selections.

We need to retrieve the hypercube so we don't need to upload the mashup everytime we change a measure or a dimension

Has anyone found any trick to this?

Our code is:

app.getObject(ObjectID).then(

function (model) {

app.createCube(model.layout.qHyperCube

, function(reply) {

...

});})

Tags (1)
1 Solution

Accepted Solutions
dhdezrino
New Contributor II

Re: Retrieving a Hypercube from an object then reusing it on another object

Nmv, managed to do it:

app.getObjectProperties(ObjectID).then(function(model){

app.createCube(model.properties.qHyperCubeDef

, function(reply) {

...

});})

1 Reply
dhdezrino
New Contributor II

Re: Retrieving a Hypercube from an object then reusing it on another object

Nmv, managed to do it:

app.getObjectProperties(ObjectID).then(function(model){

app.createCube(model.properties.qHyperCubeDef

, function(reply) {

...

});})

Community Browser