Page 7 of 13

More Detail on using the select menu

Posted: Wed Aug 20, 2014 2:30 am
by eascards

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+'"}';


More Detail on using the select menu

Posted: Wed Aug 20, 2014 9:11 pm
by Yurii Orishchuk

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.


More Detail on using the select menu

Posted: Fri Aug 22, 2014 2:34 am
by eascards

So this is what I have now. Image

Would it be easier if I mapped the LSV to the 'where' parameter and used code to get the input text to work?


More Detail on using the select menu

Posted: Fri Aug 22, 2014 3:01 am
by Yurii Orishchuk

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.


More Detail on using the select menu

Posted: Fri Aug 22, 2014 3:24 am
by eascards
  1. The search page
    1. query service
    2. I user the 'where' parameter Image

More Detail on using the select menu

Posted: Fri Aug 22, 2014 4:15 am
by Yurii Orishchuk

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.


More Detail on using the select menu

Posted: Fri Aug 22, 2014 7:15 pm
by eascards

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.


More Detail on using the select menu

Posted: Sun Aug 24, 2014 10:13 pm
by Yurii Orishchuk

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.


More Detail on using the select menu

Posted: Sun Aug 24, 2014 10:26 pm
by eascards

Added the code to the 'where' parameter of the query service.
Got this error. Here are the screenshots. Image Image Image


More Detail on using the select menu

Posted: Sun Aug 24, 2014 11:10 pm
by Yurii Orishchuk

As i see you have wrong id in where clause:

Details: http://i.imgur.com/E91P7ok.png

It should be like "53ba2599e4b09f5c7d50390f".

Regards.