<?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 Getting data from chart hypercube in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Getting-data-from-chart-hypercube/m-p/1281308#M26692</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to get the raw data from the chart model. For most of the charts, the data gets filled into qHyperCube.qDataPages. But for widgets such as stacked barcharts and tables, it &lt;SPAN style="font-size: 13.3333px;"&gt;always &lt;/SPAN&gt;stays empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried getting the data using the QTable api, using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1486044048595594 jive_text_macro" jivemacro_uid="_1486044048595594" modifiedtitle="true"&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var table = qlik.table(model);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var listener = function () {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("data binded");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; table.OnData.bind(listener);&lt;/P&gt;



&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the listener is never called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there another way of getting the data for those widgets?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Feb 2017 14:02:31 GMT</pubDate>
    <dc:creator>maxim1500</dc:creator>
    <dc:date>2017-02-02T14:02:31Z</dc:date>
    <item>
      <title>Getting data from chart hypercube</title>
      <link>https://community.qlik.com/t5/App-Development/Getting-data-from-chart-hypercube/m-p/1281308#M26692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to get the raw data from the chart model. For most of the charts, the data gets filled into qHyperCube.qDataPages. But for widgets such as stacked barcharts and tables, it &lt;SPAN style="font-size: 13.3333px;"&gt;always &lt;/SPAN&gt;stays empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried getting the data using the QTable api, using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1486044048595594 jive_text_macro" jivemacro_uid="_1486044048595594" modifiedtitle="true"&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var table = qlik.table(model);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var listener = function () {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("data binded");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; table.OnData.bind(listener);&lt;/P&gt;



&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the listener is never called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there another way of getting the data for those widgets?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 14:02:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Getting-data-from-chart-hypercube/m-p/1281308#M26692</guid>
      <dc:creator>maxim1500</dc:creator>
      <dc:date>2017-02-02T14:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Getting data from chart hypercube</title>
      <link>https://community.qlik.com/t5/App-Development/Getting-data-from-chart-hypercube/m-p/1281309#M26693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found the answer in this post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/242960"&gt;Get data from table or chart&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment" style="font-weight: inherit; font-style: inherit; color: #008200; background-color: inherit; font-size: 9pt !important;"&gt;// Fetch a page of data. A single page can maximum contain 10000&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment" style="font-weight: inherit; font-style: inherit; color: #008200; background-color: inherit; font-size: 9pt !important;"&gt;// cells. Calculate the page size and number of pages based of qSize&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment" style="font-weight: inherit; font-style: inherit; color: #008200; background-color: inherit; font-size: 9pt !important;"&gt;// and fetch accordingly.&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model.getHyperCubeData(&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; background-color: inherit; font-size: 9pt !important;"&gt;'/qHyperCubeDef'&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt;, [{&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; qTop: &lt;SPAN class="number" style="font-weight: inherit; font-style: inherit; color: green; background-color: inherit; font-size: 9pt !important;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt;,&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; qLeft: &lt;SPAN class="number" style="font-weight: inherit; font-style: inherit; color: green; background-color: inherit; font-size: 9pt !important;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt;,&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; qWidth: &lt;SPAN class="number" style="font-weight: inherit; font-style: inherit; color: green; background-color: inherit; font-size: 9pt !important;"&gt;10&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt;,&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; qHeight: &lt;SPAN class="number" style="font-weight: inherit; font-style: inherit; color: green; background-color: inherit; font-size: 9pt !important;"&gt;1000&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }]).then(data =&amp;gt; console.log(data))&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 14:15:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Getting-data-from-chart-hypercube/m-p/1281309#M26693</guid>
      <dc:creator>maxim1500</dc:creator>
      <dc:date>2017-02-02T14:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Getting data from chart hypercube</title>
      <link>https://community.qlik.com/t5/App-Development/Getting-data-from-chart-hypercube/m-p/1281310#M26694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maxime,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does your promise execute every time there's a model change? (ie when selections change).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seb&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 01:26:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Getting-data-from-chart-hypercube/m-p/1281310#M26694</guid>
      <dc:creator>sebastian_serva</dc:creator>
      <dc:date>2017-09-22T01:26:32Z</dc:date>
    </item>
  </channel>
</rss>

