Click here to Skip to main content
15,891,633 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
i have list of id which i want to pass to geoserver and zoom to those extent in openlayers 3.

this is the view i am creating :
SQL
SELECT * FROM hospitals WHERE gid IN (%list%)


validation is ^[\d,]+$
i have mentions some default ids so it zooming to those deafult values.

What I have tried:

var viewparams = 'ids:1\\,2\\,3';

passing values like this
Posted
Comments
Herman<T>.Instance 21-Jun-16 2:30am    
what is list? What's in it? Is it a parameter. Shouldn't it be @list?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900