Joe Sharples
Posts: 0
Joined: Mon Aug 18, 2014 1:31 pm

database service

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

Joe Sharples
Posts: 0
Joined: Mon Aug 18, 2014 1:31 pm

database service

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

Joe Sharples
Posts: 0
Joined: Mon Aug 18, 2014 1:31 pm

database service

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

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

database service

Hello Joe,

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

Return to “Issues”