Page 2 of 2

I am having trouble getting the _id from an item in the database to display.

Posted: Tue Sep 02, 2014 3:22 am
by Yurii Orishchuk

This time you did not pass item id to "_id" parameter.

See details: http://prntscr.com/4iukhv/direct

Thus you have this error "Object must be present in the request body"

Regards.


I am having trouble getting the _id from an item in the database to display.

Posted: Wed Sep 03, 2014 3:45 am
by Ellen Schlechter

I have the id saved in this LSV. Image

And I have it mapped here. Image


I am having trouble getting the _id from an item in the database to display.

Posted: Wed Sep 03, 2014 4:12 am
by Yurii Orishchuk

Hello Escards,

Please click "Add JS" to "_id" request parameter and add following debug JS code:

pre

alert("_id = " + value);
return value;

/pre

Now run your app and you will see what exactly stored in "variable" LSV and passed to "_id" request parameter. Then you can debug your app in accordance to this debug information.

Regards.


I am having trouble getting the _id from an item in the database to display.

Posted: Sat Sep 06, 2014 7:39 pm
by Ellen Schlechter

http://appery.io/app/mobile-frame?src...

I added the code but there is no alert box.


I am having trouble getting the _id from an item in the database to display.

Posted: Sun Sep 07, 2014 7:02 pm
by Alena Prykhodko

Hello,

On what event do you add this code?
Please tell us steps to test your app?


I am having trouble getting the _id from an item in the database to display.

Posted: Sun Sep 07, 2014 7:03 pm
by Ellen Schlechter

Never mind I got it working!