I have a problem with this JavaScript in a Event Component Click.
code
var user = Appery('campuser').val();
var pass = Appery('camppass').val();
Usuarios_Usuarios_list_service.execute({
where:{"pass":user,"user":pass},
success:function(data){
alert("Logueado" + data.length);
Apperyio.navigateTo("Enviar_Notificacions");
},
error:function(jqXHR, textStatus, errorThrown){
alert("error!!!");
}
});
/code
The service works correctly (as you can see in the picture), but I have no response to the event: success
I've tried changing the parameters of the service call:
where:{"pass":user,"user":pass},
where:'{"pass":user,"user":pass}',
data: {where:{"pass":user,"user":pass}},
Help me please!