<?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 Get the data from another table object in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Get-the-data-from-another-table-object/m-p/1526175#M37822</link>
    <description>&lt;P&gt;Hello, I develop an extension qlik sense and I'm stuck in a point.&lt;BR /&gt;&lt;BR /&gt;I want to get all data from a table, so i use an ID ( v.selectedtableObject )&amp;nbsp; to get the object:&lt;/P&gt;&lt;PRE&gt;qlik.currApp.getObject(v.selectedTableObject).then(function(model){&lt;/PRE&gt;&lt;P&gt;Then i get the title of dimension and measure:&lt;/P&gt;&lt;PRE&gt;//Dim
model.layout.qHyperCube.qDimensionInfo.forEach( function(value, col) {//Dim
	tableHTML += value.qFallbackTitle;
});
			
//Mea
model.layout.qHyperCube.qMeasureInfo.forEach( function(value, col) {//Mea
	tableHTML += value.qFallbackTitle ;
});&lt;/PRE&gt;&lt;P&gt;Then i get the total value:&lt;/P&gt;&lt;PRE&gt;//Total
model.layout.qHyperCube.qGrandTotalRow.forEach( function(value, col) {//total
	tableHTML += value.qText ;
});&lt;/PRE&gt;&lt;P&gt;And now i want to get the data (dimension and measure) values, normally it's here:&lt;/P&gt;&lt;PRE&gt;model.layout.qHyperCube.qDataPages[0].qMatrix&lt;/PRE&gt;&lt;P&gt;but qDataPages is empty...&lt;/P&gt;&lt;P&gt;Maybe the data was not here...&lt;/P&gt;&lt;P&gt;Some one can help me ? &lt;IMG id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.qlik.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 21:39:42 GMT</pubDate>
    <dc:creator>erwanallain</dc:creator>
    <dc:date>2024-11-16T21:39:42Z</dc:date>
    <item>
      <title>Get the data from another table object</title>
      <link>https://community.qlik.com/t5/App-Development/Get-the-data-from-another-table-object/m-p/1526175#M37822</link>
      <description>&lt;P&gt;Hello, I develop an extension qlik sense and I'm stuck in a point.&lt;BR /&gt;&lt;BR /&gt;I want to get all data from a table, so i use an ID ( v.selectedtableObject )&amp;nbsp; to get the object:&lt;/P&gt;&lt;PRE&gt;qlik.currApp.getObject(v.selectedTableObject).then(function(model){&lt;/PRE&gt;&lt;P&gt;Then i get the title of dimension and measure:&lt;/P&gt;&lt;PRE&gt;//Dim
model.layout.qHyperCube.qDimensionInfo.forEach( function(value, col) {//Dim
	tableHTML += value.qFallbackTitle;
});
			
//Mea
model.layout.qHyperCube.qMeasureInfo.forEach( function(value, col) {//Mea
	tableHTML += value.qFallbackTitle ;
});&lt;/PRE&gt;&lt;P&gt;Then i get the total value:&lt;/P&gt;&lt;PRE&gt;//Total
model.layout.qHyperCube.qGrandTotalRow.forEach( function(value, col) {//total
	tableHTML += value.qText ;
});&lt;/PRE&gt;&lt;P&gt;And now i want to get the data (dimension and measure) values, normally it's here:&lt;/P&gt;&lt;PRE&gt;model.layout.qHyperCube.qDataPages[0].qMatrix&lt;/PRE&gt;&lt;P&gt;but qDataPages is empty...&lt;/P&gt;&lt;P&gt;Maybe the data was not here...&lt;/P&gt;&lt;P&gt;Some one can help me ? &lt;IMG id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.qlik.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:39:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-the-data-from-another-table-object/m-p/1526175#M37822</guid>
      <dc:creator>erwanallain</dc:creator>
      <dc:date>2024-11-16T21:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get the data from another table object</title>
      <link>https://community.qlik.com/t5/App-Development/Get-the-data-from-another-table-object/m-p/1526296#M37827</link>
      <description>&lt;P&gt;Ok i finded a solution, for get the data i need to call this function (getHyperCubeData).&lt;BR /&gt;&lt;BR /&gt;Here i get 8 column and 100 line. (but we can get the 10,000 values of the hypercube).&lt;BR /&gt;&lt;BR /&gt;So i call the getHyperCubeData function, then I initialize the dataPage,&lt;BR /&gt;&lt;BR /&gt;-&amp;gt; then I go in the 1st dimension of my data variable (it's the dataPage),&lt;BR /&gt;&lt;BR /&gt;-&amp;gt; then i browse the 1st dimension of the qMatrix array (it's the line),&lt;BR /&gt;&lt;BR /&gt;-&amp;gt; then i browse the 2nd dimension of the qMatrix array (it's the column),&lt;BR /&gt;&lt;BR /&gt;-&amp;gt; and then I add to my variable the value of the cell (row.qText)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;model.getHyperCubeData('/qHyperCubeDef', [{
	qLeft: 0,
	qTop: 0,
	qWidth: 8,
	qHeight: 100
}]).then( function ( data ) {
		//Dim
		data[0].qMatrix.forEach( function(rows) {//1D
			rows.forEach( function(row) {//2D
				tableHTML += row.qText;
				});//End of 2D
		});//End of 1D
	});//End of getHyperCubeData&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 11:28:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-the-data-from-another-table-object/m-p/1526296#M37827</guid>
      <dc:creator>erwanallain</dc:creator>
      <dc:date>2019-01-04T11:28:36Z</dc:date>
    </item>
  </channel>
</rss>

