<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: QLIK Sense .NET API : trying to get measure/ dimension for all objects in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/QLIK-Sense-NET-API-trying-to-get-measure-dimension-for-all/m-p/1606886#M11044</link>
    <description>&lt;P&gt;To extract data from an object you need to know two things:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Where in the properties structure are the hypercubes located.&lt;/LI&gt;
&lt;LI&gt;What modes do the hypercubes have.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;For 1) you can do the following:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;var allCubePaths = o.GetAllHyperCubePagers().Select(p =&amp;gt; p.Path);&lt;/LI-CODE&gt;
&lt;P&gt;For 2) you'll need to inspect the "Mode"property of the cube and then use the "GetHypercubeData" version corresponding to that mode. Something like this:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;var cubeMode = o.Properties.CloneSubstructureAs&amp;lt;HyperCubeDef&amp;gt;(cubePath).Mode;
switch (cubeMode)
{
    case NxHypercubeMode.DATA_MODE_PIVOT: ...
    case NxHypercubeMode.DATA_MODE_PIVOT_STACK: ...
    case NxHypercubeMode.DATA_MODE_STRAIGHT: ...
    case NxHypercubeMode.DATA_MODE_TREE: ...
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jul 2019 08:44:11 GMT</pubDate>
    <dc:creator>Øystein_Kolsrud</dc:creator>
    <dc:date>2019-07-29T08:44:11Z</dc:date>
    <item>
      <title>QLIK Sense .NET API : trying to get measure/ dimension for all objects</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QLIK-Sense-NET-API-trying-to-get-measure-dimension-for-all/m-p/1600114#M10928</link>
      <description>&lt;P&gt;I read the QLIK Sense for .NET API. I am able to get data (measure / dimension) for most of the objects&amp;nbsp;except&amp;nbsp; TreeMap, Map, Distribution plot and Boxplot.&lt;/P&gt;&lt;P&gt;I used genericObject.GetHyperCubePivotDatafor Pivot,&amp;nbsp; List object for&amp;nbsp;Filterpane and for others, I used&amp;nbsp;genericObject.GetHyperCubeData.&lt;/P&gt;&lt;P&gt;What should I do for&amp;nbsp;TreeMap, Map, Distribution plot and Boxplot? I am unable to get the measures and dimensions for these objects?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 20:26:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QLIK-Sense-NET-API-trying-to-get-measure-dimension-for-all/m-p/1600114#M10928</guid>
      <dc:creator>mel78</dc:creator>
      <dc:date>2019-07-08T20:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: QLIK Sense .NET API : trying to get measure/ dimension for all objects</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QLIK-Sense-NET-API-trying-to-get-measure-dimension-for-all/m-p/1606886#M11044</link>
      <description>&lt;P&gt;To extract data from an object you need to know two things:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Where in the properties structure are the hypercubes located.&lt;/LI&gt;
&lt;LI&gt;What modes do the hypercubes have.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;For 1) you can do the following:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;var allCubePaths = o.GetAllHyperCubePagers().Select(p =&amp;gt; p.Path);&lt;/LI-CODE&gt;
&lt;P&gt;For 2) you'll need to inspect the "Mode"property of the cube and then use the "GetHypercubeData" version corresponding to that mode. Something like this:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;var cubeMode = o.Properties.CloneSubstructureAs&amp;lt;HyperCubeDef&amp;gt;(cubePath).Mode;
switch (cubeMode)
{
    case NxHypercubeMode.DATA_MODE_PIVOT: ...
    case NxHypercubeMode.DATA_MODE_PIVOT_STACK: ...
    case NxHypercubeMode.DATA_MODE_STRAIGHT: ...
    case NxHypercubeMode.DATA_MODE_TREE: ...
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 08:44:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QLIK-Sense-NET-API-trying-to-get-measure-dimension-for-all/m-p/1606886#M11044</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2019-07-29T08:44:11Z</dc:date>
    </item>
  </channel>
</rss>

