Skip to main content Skip to complementary content

getObject method

app.getObject(elem, id, options)

Method used to retrieve a Qlik Sense object from the Qlik Sense application and insert it into a html element. The object fills the html object, so you can size and position the element to determine how large the Qlik Sense object will be.

If you supply only one parameter, you will just get the model without displaying the object.

Since:
  • 1.1

Parameters

Name Type Description
elem Element | String

Optional.

HTML element.

Since Qlik Sense version 1.1 it is also possible to define a string of the HTML element id.

id String Object id or 'CurrentSelections' if used for Selections bar.
options Object

Optional.

noInteraction true if you want to disable interaction in the visualization.

This parameter was introduced in Qlik Sense version 1.1.

Returns

A promise of an object model.

Tip noteFor more information regarding a promise, see http://docs.angularjs.org/api/ng.$q.

Example

Example: Get object defining the html element

var app = qlik.openApp('2abac31e-3b46-4b78-8bxf-c5cea1d2514d');
	app.getObject(document.getElementById("LB01"),
		"uPyZavD");

Example: Get object defining the element id string

var app = qlik.openApp('2abac31e-3b46-4b78-8bxf-c5cea1d2514d');	
	app.getObject("LB01","uPyZavD");

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!