[Geoserver-users] WMS vendor "propertyName" parameter syntax

Hello Geoserver-users,

Sorry for this trival question but I am quite new to this.
In GeoServer manual at
http://docs.geoserver.org/stable/en/user/services/wms/vendor.html#propertyname
says:

--------------------------------------------------------------------
"propertyName"

The propertyName parameter specifies which properties are included in the response of the GetFeatureInfo operation.
The syntax is the same as in the WFS GetFeature operation.

For a request for a single layer the syntax is:
propertyName=name1,...,nameN

For multiple layers the syntax is:
propertyName=(nameLayer11,...,nameLayer1N)...(name1LayerN,...,nameNLayerN)
--------------------------------------------------------------------

But I could get proper syntax for multiple layers :frowning:
I tried to GetFeatureInfo for one layer and I succeded:

vendorParams: {propertyName:['STREET', 'MATERIAL', 'DIAMETER']},

Now I want to add another layer
{watermeters:('CUSTOMER', 'NUMBER')
Tried everything but with no success.

--------------------------------------------------------------------
my OpenLayers code:

info = new OpenLayers.Control.WMSGetFeatureInfo(
{
url:
"http://localhost:8080/geoserver/mygis/wms",
layers: [waterpipes],
vendorParams: {propertyName:['STREET', 'MATERIAL', 'DIAMETER']},
queryVisible: true,
INFO_FORMAT: 'text/html',
eventListeners:
         {getfeatureinfo: function(event)
         {document.getElementById('info').innerHTML = event.text;}
----------------------------------------------------------------------

Thanks.
--
Best regards,
Nesh mailto:mr_bungle@anonymised.com

I could be wrong on this, but last time I played with this, I think I found the OL was managing propertyName on the client side for WMSGetInfo, Have you looked at what the actual request being sent to geoserver?

Notice: This email and any attachments are confidential.
If received in error please destroy and immediately notify us.
Do not copy or disclose the contents.