Handler is not working.

Forum to discuss the new web client version of Servoy.

Handler is not working.

Postby ashutoslenka426 » Fri Sep 01, 2017 11:06 am

Hi All ,

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

Code: Select all
$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.
AL
ashutoslenka426
 
Posts: 295
Joined: Thu Jan 26, 2012 3:38 pm

Re: Handler is not working.

Postby ashutoslenka426 » Fri Sep 01, 2017 12:50 pm

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

Code: Select all
$(".dx-icon.dx-icon-clear").on('click', $scope.handlers.onClearMethodID);
AL
ashutoslenka426
 
Posts: 295
Joined: Thu Jan 26, 2012 3:38 pm

Re: Handler is not working.

Postby ROCLASI » Fri Sep 01, 2017 2:46 pm

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.
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 7 guests