[OpenLayers-Users] Problems w/ sqlview and passing commas
Charles Galpin
cgalpin at lhsw.com
Mon Sep 12 15:54:21 EDT 2011
Hi Joe
On Sep 12, 2011, at 3:36 PM, Tito, Joseph wrote:
...
> viewparams: 'event_type:1,2'
> ...
> If I pass the string “event_type:1,2” or “event_type:1\,2”, GeoServer complains:
>
> 1 layers requested, but found 2 view params specified
>
> If I pass the strong “event_type:1\\,2”, GeoServer doesn’t return any data. I looked at my GeoServer logs, and it seems that if I pass it this way, it resolved to:
>
> VIEWPARAMS=event_type:1\,2
>
> Has anyone else had problems passing CSV lists to sqlviews? If so, how do I get around this?
Yes I ran into this recently. In my case '\\,' as the delimiter works for me though so not sure why that doesn't for you (2.1+ iirc)
hth
charles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110912/5fbe18a4/attachment.html
More information about the Users
mailing list