Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

Announcements
QlikWorld 2020: Join us May 11 - 14, 2020 in Phoenix, AZ. Register early and save $400. Learn More
vitaliichupryna
Contributor II

Connect to QlikSense object

Hi, 

How can I connect to Qliksense objects? For example, I have straigth table and need to have possibility to load data from it by using qlik extensions.

 

1 Reply
Highlighted
Partner
Partner

Re: Connect to QlikSense object

Hi, you can use the following code block.

app.getObject('object_id').then(function(model){
		model.getHyperCubeData('/qHyperCubeDef', [{
			qTop: 0,
			qLeft: 0,
			qWidth: 20,
			qHeight: 500
		}]).then(function (data) {
			console.log(data);
			console.log(data[0].qMatrix);
		})
	})