Page 1 of 3
Query Service Does not work when I want to display list based on query.
Posted: Sun Sep 08, 2013 1:15 pm
by Deon
Hi
I have a Query Service that I want to display in a list.
I have a local storage variable containing the value.
I have tested by using alert('{"StoreType": ' + value + '}'); The correct vlue is displayed in the message
I have use this syntax return '{"StoreType": "'+Value+'"}';
as well return '{"StoreType": '+Value+ "}'; because some post have one syntax format an other post other syntax format (very confusing dont know who is right)
Anyway the list is empty.
I followed the tutorial on the search app and I am pretty sure that I have not missed anything.
Thanks
Query Service Does not work when I want to display list based on query.
Posted: Sun Sep 08, 2013 2:15 pm
by Alena Prykhodko
Hello Deon!
Is it issue in app, that you posted here?
Query Service Does not work when I want to display list based on query.
Posted: Sun Sep 08, 2013 4:14 pm
by Deon
Hi
No, It is a separate issue.
Query Service Does not work when I want to display list based on query.
Posted: Sun Sep 08, 2013 4:53 pm
by maxkatz
Can you show the content of this when running:
code
alert('{"StoreType": ' + value + '}');
/code
Query Service Does not work when I want to display list based on query.
Posted: Sun Sep 08, 2013 5:04 pm
by Deon
Query Service Does not work when I want to display list based on query.
Posted: Sun Sep 08, 2013 5:05 pm
by Deon
It shows me the stored variable which I am requesting.
Query Service Does not work when I want to display list based on query.
Posted: Sun Sep 08, 2013 5:18 pm
by maxkatz
Can you show a screen shot of the actual alert?
Query Service Does not work when I want to display list based on query.
Posted: Sun Sep 08, 2013 5:24 pm
by Deon
Query Service Does not work when I want to display list based on query.
Posted: Sun Sep 08, 2013 5:25 pm
by Deon
See below. I have also shared the app
App:- Spar Shopping
Page:- Specials
Query Service Does not work when I want to display list based on query.
Posted: Sun Sep 08, 2013 5:26 pm
by Deon
That is the expected value from the Local Storage Variable