# getStackData method

Information noteSTABLE.   
  
This API is reliable and breaking changes are unlikely.

backendApi.getStackData(qPages, qMaxNbrCells)

Gets stacked data from the Qlik associative engine for this object. Only works for hypercubes with qMode = S.

## Version history

Version history

| Version state | Details |
| --- | --- |
| Introduced | 2.0 |

## Parameters

### qPages

Type: Array

An array of request page objects.

### qMaxNbrCells

Type: Number

Maximum number of cells at outer level.

## Returns

A promise of stack data pages.

Tip noteFor more information regarding a promise, see [The Promise API](https://code.angularjs.org/1.5.8/docs/api/ng/service/$q#the-promise-api).

## Examples

Example:

```
var requestPage = {
		qTop : 0,
		qLeft : 0,
		qWidth : 10,
		qHeight : count
	};

this.backendApi.getStackData([requestPage], 1000).then(function(dataPages) {
	....
});
```