Handler is not working.

Hi All ,

I am working in servoy 8.1.2 rc . The handler is not getting called . Please find the code below :

$scope.$watch('model.dataproviderID', function(newVal) {
					
					//$scope.oldValue = $scope.value;
				//	$scope.value = event.value;
									
					$(".dx-icon.dx-icon-clear").on('click', function() {
						alert("yes");
						$scope.handlers.onClearMethodID();
					});
}

I could able to see the alert . But the handler is not getting called . Why ? . When I am writing the handler outside the jquery , it is getting called . Please provide some suggestions.

I got the got the solution . it is working like this .

$(".dx-icon.dx-icon-clear").on('click', $scope.handlers.onClearMethodID);

Hi Ashutos,

Do realise that Servoy’s 8.1 branch is up to 8.1.4 now. You might want to update.

Hope this helps.