Query Service??
Any further thoughts friends?
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Any further thoughts friends?
Hi Stephen,
Working on it.
Thanks Katya!
Please clarify,
Do you need to get the data from Database and filter the data by "raceID" field?
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.
Did Katya go home for the day?
Hello! We are working on it. I'll update as soon as I get information. Sorry for delay...
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
Marina You are a RockStar!! That worked!!
Where is the best place to learn these JS syntax nuances?