Page 5 of 9

search results not displaying

Posted: Sat Oct 05, 2013 4:57 am
by maxkatz

You need to specify a value for 'where'. If you don't specify a value, you will get the entire list back.


search results not displaying

Posted: Sat Oct 05, 2013 5:10 am
by Scott Schechtel6280324

So it looks like this?


search results not displaying

Posted: Sat Oct 05, 2013 5:26 am
by maxkatz

See an example here: http://docs.appery.io/tutorials/build...

You would need to enter something like this:
{"column_name":"some_value"}


search results not displaying

Posted: Sat Oct 05, 2013 5:26 am
by maxkatz

Just as a side note, you can post screen shots right in the forum here. It will be simpler than linking to files...


search results not displaying

Posted: Sat Oct 05, 2013 5:45 am
by Scott Schechtel6280324

So for my app the "column_name" is Name and some_value is also Name since I want to query whatever name I type. The tutorial is Maker:Samsung which tells me it is instructed to only query a specific type. I also changed the JS to read this:
return '{"Name":"'+value+'"}';....still nothing.


search results not displaying

Posted: Sat Oct 05, 2013 6:33 pm
by maxkatz

Before you try the service on the page, let's make sure it works when you test it. In the Test tab, you need to enter something like this for 'where' parameter:

{"column_name":"some_value"}


search results not displaying

Posted: Sat Oct 05, 2013 8:10 pm
by Scott Schechtel6280324

yeah the test failed and this is the message:

{
"status":"400 Bad Request",
"url":"https://api.appery.io/rest/1/db/colle...",
"response":{
"code":"DBSQ219",
"description":"Incorrect query"
}
}
So if the column in the database is 'Name' and I want to get the value of the name of the wine, isn't it Name also?? When I plugged database id into {database_id} I got this error:
'Test failed! Please check service properties and the error details in "Response" area.' Screen shot of response area:
Image


search results not displaying

Posted: Sat Oct 05, 2013 9:00 pm
by maxkatz

It should be the wine name. Can you post what exactly you put for 'where'


search results not displaying

Posted: Sat Oct 05, 2013 9:28 pm
by Scott Schechtel6280324

Not sure how adding one wine name will query the other 900+ wines.
Heres the screenshots from allwines_allwinesnew3_query_service

Image


search results not displaying

Posted: Sat Oct 05, 2013 9:34 pm
by Scott Schechtel6280324

Here's one with an actual wine from the db
http://worldofwinesclub.com/wp-conten...