this is my js function...
var invocationData={
adapter : 'Health_Care',
procedure: 'update',
parameters:[uname,cp,np]
};
WL.Client.invokeProcedure(invocationData,
{
onSuccess: function(){
alert("Password successfully changed");
},
onFailure: function(){
alert("failed");
}
}
);
my adapter is...
var updateStatement = WL.Server.createSQLStatement("UPDATE EMPLOYEE SET PASSWORD=? WHERE UID=? AND PASSWORD=?");
function update(pid,curP,newP) {
return WL.Server.invokeSQLStatement({
preparedStatement : updateStatement,
parameters : [newP,pid,curP]
});
}
my adapter is alone working when i invoke adapter... but with java script i'm getting the above mentioned error for all the pages....