Skip to main content Skip to complementary content

getObject method

app.getObject(elem, id)

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.

Parameters

Name Type Description
elem Element Optional HTML element
id String Object id or 'CurrentSelections' if used for current selections toolbar.

Returns

A promise of an object model.

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

Example

app.getObject(document.getElementById("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!