Stephen Goveia
Posts: 0
Joined: Fri May 10, 2013 3:35 pm

Query Service??

Any further thoughts friends?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Query Service??

Hi Stephen,
Working on it.

Stephen Goveia
Posts: 0
Joined: Fri May 10, 2013 3:35 pm

Query Service??

Thanks Katya!

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Query Service??

Please clarify,
Do you need to get the data from Database and filter the data by "raceID" field?

Stephen Goveia
Posts: 0
Joined: Fri May 10, 2013 3:35 pm

Query Service??

Yes thats correct. I modeled this action based on the tutorial "Building a Clickable List App with HTML5 Local Storage". On page1 I have a list with two labels, one of them is hidden and stores the "raceIDLocalVar" when clicked.

On page2 if "raceIDLocalVar" matches a raceID(from DB) which is associated with a Name(from DB), list all that match.

Stephen Goveia
Posts: 0
Joined: Fri May 10, 2013 3:35 pm

Query Service??

Did Katya go home for the day?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Query Service??

Hello! We are working on it. I'll update as soon as I get information. Sorry for delay...

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Query Service??

Use the following algorithm:
in service query in "where" parameter you should pass an object with corresponding raceID and from response you get map Name field. Add the following JS in mapping for "where" parameter
codereturn '{"raceID": ' + localStorage.getItem("raceIDLocalVar") + '}';/code
if raceID in DB is a number
or
codereturn '{"raceID": "' + localStorage.getItem("raceIDLocalVar") + '"}';/code
if raceID in DB is a string

Stephen Goveia
Posts: 0
Joined: Fri May 10, 2013 3:35 pm

Query Service??

Marina You are a RockStar!! That worked!!

Stephen Goveia
Posts: 0
Joined: Fri May 10, 2013 3:35 pm

Query Service??

Where is the best place to learn these JS syntax nuances?

Return to “Issues”