Page 1 of 1

database service

Posted: Mon Feb 23, 2015 5:11 pm
by Joe Sharples

I have a simple database service mapped to a list with a where parameter.

When I test the service it works but for some reason when I test the app the service doesn't return any results.

Image

Image

Image

Image

Image

Image


database service

Posted: Mon Feb 23, 2015 5:15 pm
by Joe Sharples

I also tried tried it with "true" in the 'Rated' query


database service

Posted: Mon Feb 23, 2015 5:28 pm
by Joe Sharples

I removed the mapping and I changed the JS to:

prevar club = localStorage.getItem('ClubID');
return '{"taggedItem_id":"'+club+'"}';/pre

and it worked.

What was wrong with the first bit of code?

prereturn '{"taggedItem_id":" ' + value + ' "}'/pre


database service

Posted: Mon Feb 23, 2015 5:53 pm
by Evgene Karachevtsev

Hello Joe,

You may try this JS code instead of yours
prereturn decodeURI('{ "taggedItem_id" : "' + value + '"}');/pre