Qlik Community

Qlik Sense Integration, Extensions, & APIs

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

tversweyveld
New Contributor III

Explore widget hypercube in console?

Hi,

When creating a Qlik object (hypercube,list) in a mashup it is very convenient to add:

console.log(reply);

to the reply method so it can be explored in the browser.

However, when creating a widget in the dev-hub this is not possible. Is there a way to navigate/visualize the hypercube in a widget?

Without that it's very difficult to navigate a complex hypercube and trying to retrieve data like this:

layout.qHyperCube.qStackedDataPages[0].qData[0].qSubNodes etc..

because it's basically a black box.

Any help is appreciated.

Thanks!

1 Solution

Accepted Solutions
erik_wetterberg
Honored Contributor

Re: Explore widget hypercube in console?

Hi,

You can add this to your template, like for example:

<div>{{layout.qHyperCube.qStackedDataPages[0]}}</div>

work your way down into the structures you need. angular takes care of undefined objects etc, so you don't have to worry.

Erik Wetterberg

Erik Wetterberg
https://extendingqlik.upper88.com/
2 Replies
erik_wetterberg
Honored Contributor

Re: Explore widget hypercube in console?

Hi,

You can add this to your template, like for example:

<div>{{layout.qHyperCube.qStackedDataPages[0]}}</div>

work your way down into the structures you need. angular takes care of undefined objects etc, so you don't have to worry.

Erik Wetterberg

Erik Wetterberg
https://extendingqlik.upper88.com/
tversweyveld
New Contributor III

Re: Explore widget hypercube in console?

Thank you so much!!! This will save me a lot of headache!

Community Browser