ibm mobilefirst - IBM Worklight - Unable to invoke adapter procedure from client application -


i trying invoke adapter procedure client application. adapter procedure working on isolated mode, showing error when invoking application.

this 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 put code in easy way show actual error easy understanding ,this showing error of catch block:

error::error:invalid invocation of method wl.client.invokeprocedure;invalid option attribute 'parameter',...

like error message implies, option attribute parameter invalid. should parameters, s.

function wlcommoninit(){ try{ wl.client.invokeprocedure({     adapter : 'userdb',     procedure : 'getuser',     parameters : ['demo', 'demo'] }, {     onsuccess : function(res){alert("login success");},     onfailure : function(res){alert("login failure");},     }); } catch(e) {     alert("error::"+e); } } 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -