Page 2 of 4

multi query

Posted: Mon Jun 16, 2014 3:08 pm
by Michael4771079

code in mapping

Image


multi query

Posted: Mon Jun 16, 2014 7:30 pm
by Michael4771079

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?


multi query

Posted: Mon Jun 16, 2014 8:03 pm
by Kateryna Grynko

Hi Michael,

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


multi query

Posted: Mon Jun 16, 2014 8:37 pm
by Michael4771079

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


multi query

Posted: Tue Jun 17, 2014 9:33 am
by Michael4771079

any news here folks


multi query

Posted: Tue Jun 17, 2014 10:11 am
by Evgene Karachevtsev

Michael,

Sorry, still nothing. Working on it.


multi query

Posted: Tue Jun 17, 2014 10:21 am
by Michael4771079

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


multi query

Posted: Tue Jun 17, 2014 1:49 pm
by Evgene Karachevtsev

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


multi query

Posted: Tue Jun 17, 2014 3:01 pm
by Michael4771079

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


multi query

Posted: Tue Jun 17, 2014 7:11 pm
by Michael4771079

any news, im late as usual!