Eddie Willcox
Posts: 0
Joined: Thu Nov 14, 2013 6:55 am

Retrieve data using clickable list

Just as a test, on the list service I am using, I tried to run a test exactly as the app is set up to do and even there, it is not giving the results I expect to see: Image

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

Retrieve data using clickable list

In step 5 you have incorrect mapping. You should pass where request parameter, not Segment_1 and Segment_3 (here is more information) - http://docs.appery.io/documentation/b... (see Query Constraints )

Eddie Willcox
Posts: 0
Joined: Thu Nov 14, 2013 6:55 am

Retrieve data using clickable list

So, instead of using the list service, i must use the query service? The query service only allows for one local storage variable to be passed to the where clause in the request. In my case I might need 2 fields to be passed to the where clause. I will need to display data that matches segment_1 and segment_3

Eddie Willcox
Posts: 0
Joined: Thu Nov 14, 2013 6:55 am

Retrieve data using clickable list

My concern is that I can only pass 1 local storage variable to the where clause, whereas I need to pass 2 local storage variables to it

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

Retrieve data using clickable list

Add JS in mapping. Should be something like this prereturn '{"Segment_1": "' + localStorage.getItem("Segment_1") + '", "Segment_3": "' + localStorage.getItem("Segment_3") + '"}';/pre

Eddie Willcox
Posts: 0
Joined: Thu Nov 14, 2013 6:55 am

Retrieve data using clickable list

Thank you so much. You've been a great help. That works exactly the way I need it to work.

Return to “Issues”