Passing local variable to backend service not working
Hello,
Here is what I am trying to do. I have a collection in the Tiggzi backend service. It has multiple columns, one of which is called 'Player Name'. The first query I run puts names of Players on a page in my App., in a list. This works fine. What I am trying to do next is when one clicks on of these these names, transition to another page with more details of the Player clicked on. This is not working.
Here is how I am doing it. On the Click on the list element, I am doing two things:
1st - setting a Local Variable to list element - Text
2nd - transition to new page
On the new page, I am calling the DB query again on Load. I am passing the Local Variable to the 'where' parameter of the Query by mapping it to the 'where' query and adding JavaSript:
return '{"Player Name":"'+value+'"}';
I am getting no data on the page. What am I doing wrong?
Thanks.