I am trying to invoke an adapter procedure from client application. The adapter procedure is working on isolated mode, but it is showing error when invoking it from application.
This is my JavaScript file:
function wlCommonInit(){
try{
WL.Client.invokeProcedure({
adapter : 'userDB',
procedure : 'getUser',
parameter : ['demo', 'demo']
}, {
onSuccess : function(res){alert("login Success");},
onFailure : function(res){alert("login Failure");},
});
}
catch(e)
{
alert("ERROR::"+e);
}
}
I am simply put my code in easy way to show my actual error for easy understanding ,this is showing error of catch block:
ERROR::error:invalid invocation of method WL.Client.invokeProcedure;invalid option attribute 'parameter',...