Thank you. My follow up questions is why can't I use JSON.parse in a server script?
I'm using this line of code:
code
var obj = JSON.parse( result );
/code
I'm getting an exception with this message:
Unexpected token oncode: undefined
I already know this example - I'm using the code from it. My question is: It works when I run Test in appery, but it doesn't work when the same app is on the Android device. Why is that?
On the Load event. On the list page, I set a localStorage variable with the id of the record. Then the rest service maps that to the ObjectId. Pretty standard technique.