Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

QlikSense Extension Validated Event not firing

Qlik Sense v3.2

I am trying to capture the Validated event when a field selection is made.  I have tried capturing Validated, InValidated, Aborted, Cancelled and Closed and none fire.  When a field selection is made qlik.app.createGenericObject is called and run successfully but nothing else runs after that method completes.  Because createGenericObject executes I am assuming an event has fired.

I log the Validated object before and after calling bind and I see the observers collection updated.

This is the code I am using to add a function to the Validated event.

$scope.component.model.Validated.bind(function(){

    console.info("model validated fired");

});

I know at one point in time I had this working and the event was firing.  Any ideas on how to troubleshoot would be appreciated.

2 Replies
Anonymous
Not applicable
Author

What I found is if a dimension and measure are not set for the extension the validated event doesn't fire. 

diegobormann
Partner - Contributor II
Partner - Contributor II

I had the same issue. Only on a single table / data-island the event triggered. I solved this by looking 1 level deeper then the actual model, like this:

$scope.component.model.app.Validated.bind( function () {

  console.info( 'Validated' );

} );

So looking at the app of model and now it always get triggered.

Diego