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

multi query

code in mapping

Image

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

multi query

Hi,
the code I tried to use is my effort to implement this service, I got from the end of this post https://getsatisfaction.com/apperyio/...

can anyone tell me whats wrong?

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

multi query

Hi Michael,

In the 5th line, you have a new line (underlined with red). Please remove it.

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

multi query

OK Katya,
I removed the line and tested in browser, I it returns all items in the db and not what is select with selects,
in this screenshot I have 3 bedroom selected but when u look at the response in console
it has returned the two only properties in the db
and not only the three bedroom property
if theres anything else you would like me to show please ask

thx

Image

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

multi query

any news here folks

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

multi query

Michael,

Sorry, still nothing. Working on it.

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

multi query

OK Evgene,
just in case its required the apps name is Easilets and is shared, db ID 539c2337e4b0b74f1eb9adb3, also called easilets

Katya suggested removing this code, I dont see how it could work without the code or something similar

this is the code that threw error as ss above

return '{"$and": [{"locationSelect": "'+locationSelect+'"},{"bedroomSelect": "'+bedroomSelect'"},{"priceSelect": "'+priceSelect'"},{"professionSelect": "'+professionSelect'"}]}';

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

multi query

Michael,

You have error. You've missed + after bedroomSelect, priceSelect и professionSelect. Should be like this:

codereturn '{"$and": [{"locationSelect": "'+locationSelect+'"},{"bedroomSelect": "'+bedroomSelect+'"},{"priceSelect": "'+priceSelect+'"},{"professionSelect": "'+professionSelect+'"}]}';/code

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

multi query

Thanks Evgene
I hadnt seen that mistake, thank you

I replaced the code but still a problem
I have some screenshots

where mapping code

Image

database

Image

response mapping

Image

the request parameters are not defined after service runs, can u spot what mistake I am making?

Image

cheers again for the support

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

multi query

any news, im late as usual!

Return to “Issues”