Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

retrieving data from collection

Hi,
I need some guidance regarding db collections,
I have added a db collection,
I want to get 4 fields returned

Company Name, Telephone, Email, and Image for companies in a particular town

Here is a screen shot of collection

Image

do you have an example of this service,

thx

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

retrieving data from collection

Hi Michael,

See our tutorials: http://docs.appery.io/tutorials/#Appe...

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

retrieving data from collection

Hi Katya,
I have followed the above tutorial but its not working for me,

here are some screenshots of the service, mapping and console error

Image

Image

Image

the following test gets a success when nothing is typed in "where"

Image

but you type a town name to "where" it fails

Image

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

retrieving data from collection

Hi Michael,

Please note the "where" parameter using: http://docs.appery.io/tutorials/build...

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

retrieving data from collection

Thx Katya,
I added the js

Test of service gives a different error

Image

and in the console

Image

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

retrieving data from collection

We can't see it on screen shot, please post the text you pass in "where" here.

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

retrieving data from collection

NEWCASLTE UPON TYNE

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

retrieving data from collection

Hi Michael! In "where" parameter you need to pass JSON string. For example instead NEWCASLTE UPON TYNE should be code{"Town": "NEWCASLTE UPON TYNE"}/code

Return to “Issues”