Page 1 of 1

where parameter in a query service using local storage variable giving "Incorrect query" error

Posted: Mon Apr 27, 2015 2:32 am
by Bruce Harrison

Hi,
I am trying to test a query Database service with a where parameter using local storage variable and it is giving me Incorrect query error.

This is what I have as value for my where parameter...
var myCity = localStorage.getItem('localcity'); return '{'"city":"'+myCity+'"'}';

localcity is the local storage variable. Please find the attached image.

Image

What is the mistake that I am doing?
Any help on this from anyone appreciated.
-Bruce


where parameter in a query service using local storage variable giving "Incorrect query" error

Posted: Mon Apr 27, 2015 7:09 am
by Serhii Kulibaba

Hello Bruce,

It is not allowed to use JS on the test service page. You can use it only on service mapping: https://devcenter.appery.io/documenta...


where parameter in a query service using local storage variable giving "Incorrect query" error

Posted: Thu Apr 30, 2015 1:20 am
by Bruce Harrison

But Sergiy,
How do I get the the string that have in my local storage assigned to the where parameter of a query service ?

Please let me know.

-Bruce


where parameter in a query service using local storage variable giving "Incorrect query" error

Posted: Thu Apr 30, 2015 2:47 am
by Bruce Harrison

Hi Sergiy,
I got that where parameter taken care. I am good with that..

Now, I am getting objects from the GET service and I want to map it to a select component. How do I do that? Is there a step-by-step document that you can point me to?

-Bruce.


where parameter in a query service using local storage variable giving "Incorrect query" error

Posted: Thu Apr 30, 2015 2:51 am
by Bruce Harrison

Hi Sergiy,
Got that taken care as well. I am all set now :)

-Bruce