Skip to main content Skip to complementary content

on method

Information noteSTABLE.

This API is reliable and breaking changes are unlikely.

qlik.on(eventName, callback)

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

Information noteCan be overridden by app and global events.

Version history

Version history
Version state Details
Introduced Qlik Sense July 2018



Type: String

Name of the event. Can be:

  • error
  • warning
  • closed


Type: Function


Callback method. Registers a callback that is executed every time data is returned.


require( ["js/qlik"], function ( qlik ) {
	qlik.on( "error", function ( error ) {
		$( '#popupText' ).append( error.message + "<br>" );
		$( '#popup' ).fadeIn( 1000 );
	} );
	$( "#closePopup" ).click( function () {
		$( '#popup' ).hide();
	} );
    //open apps -- inserted here --
    //get objects -- inserted here --			
} );

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!