More Detail on using the select menu
How do I get it to display the calf information then? This is the code that I used before to get it to display:
return '{"calf_id":"'+value+'"}';
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
How do I get it to display the calf information then? This is the code that I used before to get it to display:
return '{"calf_id":"'+value+'"}';
Hi,
You can read information from collection item using for this "read" service.
Here is details about this service: http://devcenter.appery.io/documentat...
Regards.
HI Eascards,
Please provide us more information about where do you have this code.
Make screen shots which are can ask on this questions:
1 On what page you use this service?
2 What service you are use?
3 In what request parameter you use code from below?
Regards.
Ok, but i've talked above about "read" service. If you don't willing to follow provided answer you need to notify about it.
In your case you have to return where object.
So correct code should be:
pre
var bookId = localStorage.getItem("bookid");
alert("bookId = " + bookId);
var whereObject = {"_id": bookId};
return JSON.stringify(whereObject);
/pre
Note: you need to see in alert correct bookId. If you don't get it correct - you need to take a look steps before what you do wrong.
Regards.
I just don't understand the "read" service.
Anyway, the correct book is shown in the alert but it still doesn't display results after using your code.
Hello,
You need to debug your app to understand what is wrong.
Please use for these goal code like:
pre
//To out your goal text to console
console.log("Console text");
//To out your text with alert.
alert("Alert text");
/pre
See more details about debugging here: http://devcenter.appery.io/documentat...
Regards.
As i see you have wrong id in where clause:
Details: http://i.imgur.com/E91P7ok.png
It should be like "53ba2599e4b09f5c7d50390f".
Regards.