eascards
Posts: 0
Joined: Mon Jul 14, 2014 2:42 am

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

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

More Detail on using the select menu

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.

eascards
Posts: 0
Joined: Mon Jul 14, 2014 2:42 am

More Detail on using the select menu

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?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

More Detail on using the select menu

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.

eascards
Posts: 0
Joined: Mon Jul 14, 2014 2:42 am

More Detail on using the select menu

  1. The search page
    1. query service
    2. I user the 'where' parameter Image
Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

More Detail on using the select menu

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.

eascards
Posts: 0
Joined: Mon Jul 14, 2014 2:42 am

More Detail on using the select menu

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.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

More Detail on using the select menu

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.

eascards
Posts: 0
Joined: Mon Jul 14, 2014 2:42 am

More Detail on using the select menu

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

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

More Detail on using the select menu

As i see you have wrong id in where clause:

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

It should be like "53ba2599e4b09f5c7d50390f".

Regards.

Return to “Issues”