service execute syntax in new builder editor (as of 9/21/2014)
I sent the following email to support, and received a very helpful reply.
- - - - - - - - - - - -Before the new Builder UI, in custom javascript (in a "Page show" event) I had the following code, which worked well:
pre
login.execute({
data: {
'loginpassword': password,
'uid': uid
}
});
/pre
NOTE: the values of password and uid were gotten from localStorage in previous lines.
Reply:
- - - - - - - - - - - -If it is a POST method:
pre
login.execute({
body: {
'loginpassword': password,
'uid': uid
}
});
/pre
If it is a GET method:
pre
login.execute({
parameters: {
'loginpassword': password,
'uid': uid
}
});
/pre
(Of course, I'd never send a password with GET!)
However, I also need to know about PUT and DELETE methods (and for completeness, please include PATCH in your reply, though personally I don't need it). These methods are used in Appery database APIs which need I to call in Javascript.
Thank you,
Fred