Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

GetHyperCubeData, how to find the path to a hypercube? (C#)

GetHyperCubeData(string path, IEnumerable<Nxpage> pages).

I am looking for a specific visualisation's Hypercube.

How can i find the path to a specific Hypercube?

1 Solution

Accepted Solutions
Øystein_Kolsrud
Employee
Employee

Also, with the new version of the Qlik Explorer for Developers is here!‌‌‌ tool that was just released, you can navigate through the JSON structure of properties and layouts. The path to individual JSON properties can be inspected choosing the "id" template and selecting the node you are interested in like this:

HypercubeProperty.png

View solution in original post

3 Replies
Øystein_Kolsrud
Employee
Employee

How many cubes do you have in the object? You could use hits method: GenericObject.GetAllHyperCubePagers Method

If you have just a single cube then you could do like this:

var path = myObject.GetAllHyperCubePagers().Single().Path;

But if you just want to get the data, then you might want to go directly through the pager object instead of looking up the path. For example like this::

var pager = myObject.GetAllHyperCubePagers().Single();

var data = pager.GetData(<mypages>);

Anonymous
Not applicable
Author

Thank you for your relpy, this works.

i couldn't find this solution in the .net api documentation of Qlik Sense.

Øystein_Kolsrud
Employee
Employee

Also, with the new version of the Qlik Explorer for Developers is here!‌‌‌ tool that was just released, you can navigate through the JSON structure of properties and layouts. The path to individual JSON properties can be inspected choosing the "id" template and selecting the node you are interested in like this:

HypercubeProperty.png