Mike Maughan
Posts: 0
Joined: Wed Feb 19, 2014 10:55 pm

Source localStorage variable in db list service request "where" parameter

I'm trying to do what the gentleman did in this thread, however I'm going to need some smaller steps than what he showed in his solution.

Basically, I want to return only rows in a table that have a specific column value. I've created the "where" request parameter, and I'm trying to tell it to use the localStorage variable value, like this:
where={"incident_id": Appery('currentIncident') }

Any suggestions would help immensly. I've search all over the documentation and I don't see any simplified steps to accomplish this.

Thanks!

Mike

Nikita
Posts: 0
Joined: Fri Feb 28, 2014 4:02 pm

Source localStorage variable in db list service request "where" parameter

Hello,

Please add JS to the mapping to where parameter:
return '{"incident_id" : "' + Appery("currentIncident") '"}';

Return to “Issues”