Jun 28, 2011, 5:46 PM
Undefined value returned by directmethod on client side
I got this method on server side:
this is the client function that calls the server method
Any ideas please?
[DirectMethod]
public static bool IsTerminalServiceRole()
{
return Facade.UserIsInRole(Constants.ROLTERMINALSERVICE);
}
It will returns true or false.this is the client function that calls the server method
function verifyConciliation() {
var result = Ext.net.DirectMethods.IsTerminalServiceRole();
if (result) {
Ext.net.DirectMethods.VerifyConciliationRequest(1);
} else {
Ext.net.DirectMethods.VerifyConciliationRequest(0);
}
setTimeout(verifyConciliation, 60000);
}
but when debuging result the value its "undefined".Any ideas please?
Last edited by Daniil; Jun 28, 2011 at 10:18 PM.
Reason: Please use [CODE] tags