on method

This API is reliable and breaking changes are unlikely.

qlik.app.on(eventName, callback)

Adds listeners for the app events. Multiple listeners can be added to an event.

Version history

Introduced Qlik Sense February 2018


Name Type Description
eventName String

Name of the event. Can be:

  • error
  • warning
  • closed
callback Function Callback method.


var app = qlik.openApp("MY_APP_ID");
app.on("error", function ( error ) {
  console.log("error listener called for app", error);
} );
app.on("warning", function ( warning ) {
  console.log("warning listener called for app", warning);
} );
app.on("closed", function ( closed ) {
  console.log("closed listener called for app", closed);
} );

Did this information help you?

Thanks for letting us know. Is there anything you'd like to tell us about this topic?

Can you tell us why it did not help you and how we can improve it?