• No replies
570 Posts

Pinned topic SQL Adapter: worklight.js error

‏2012-06-12T12:29:08Z |

When I try to invoke a SQLAdapter via WL.Client.invokeProcedure() firebug found me an error in worklight.js file.

This is the code:

var param1 = 
'001';   function loadSuccess()
{ alert(
"load success"); 
}   function loadFailure()
{ alert(
"load failure"); 
}   var options = 
{ onSuccess: loadSuccess, onFailure: loadFailure 
};   var invocationData = 
{ adapter: 
'SQLTestAdapter', procedure: 
'functionTest', parameters: [param1] 
};   var result = WL.Client.invokeProcedure(invocationData, 
{ onSuccess: loadSuccess, onFailure: loadFailure 

And this is the error that come from WL.Client.invokeProcedure by firebug:
"invalid 'in' operand profile
return !!(field in profile && profilefield);
worklight.js (row 2286)
How can i resolve this problem?