{
const app = await enigmaApp;
const model = await app.getObject('rJFbvG');
const modelLayout = await model.getLayout();
const data = [];
const columns = modelLayout.qHyperCube.qSize.qcx;
const totalheight = modelLayout.qHyperCube.qSize.qcy;
const pageheight = 5
const numberOfPages = 3
for (let i = 0; i < numberOfPages; i++) {
const page = {
qTop: pageheight * i,
qLeft: 0,
qWidth: columns,
qHeight: pageheight,
};
const row = await model.getHyperCubeData('/qHyperCubeDef', [page]);
data.push(...row[0].qMatrix);
}
const table = data.map(x => `<tr><td>${x[0].qText}</td><td>${x[1].qText}</td><td>${x[2].qText}</td></tr>`);
return html`
<table style="width:100%">
<tr>
<th>Department</th>
<th>Priority</th>
<th>Avg Duration</th>
</tr>
${table}
</table>
`
}