Qlik Community

Integration, Extension & APIs

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

Announcements
Now Live: Qlik Sense SaaS Simplified Authoring – Analytics Creation for Everyone: READ DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
dhdezrino
Partner - Contributor II
Partner - 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) {

...

});})

1 Solution

Accepted Solutions
dhdezrino
Partner - Contributor II
Partner - Contributor II
Author

Nmv, managed to do it:

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

app.createCube(model.properties.qHyperCubeDef

, function(reply) {

...

});})

View solution in original post

1 Reply
dhdezrino
Partner - Contributor II
Partner - Contributor II
Author

Nmv, managed to do it:

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

app.createCube(model.properties.qHyperCubeDef

, function(reply) {

...

});})