[Users] filter in attributes-Form

Eric Lemoine eric.lemoine at camptocamp.com
Tue Sep 21 10:11:26 CEST 2010


On Thu, Sep 9, 2010 at 5:39 PM, Sascha Müller <s.mueller76 at arcor.de> wrote:
> Hi,
>
> I use:
>
> - GeoExt: trunk (08_2010)
> - OpenLayers: 2.9.1
> - GeoServer: 1.7.7
>
> I use the attribute-Form like in the GeoExt Examples. Now, I want only
> attributes where the type is not a 'string'.
> Where do I have to do this? Inside the GeoExt.data.AttributeStore?

The AttributeReader has an "ignore" option for exactly this. See
<http://geoext.org/lib/GeoExt/data/AttributeReader.html>. Options
passed to the AttributeStore are passed to the AttributeReader so just
set "ignore" in the options passed to the AttributeStore (e.g. ignore:
{"type": new RegEx("string", "i")}).

Sorry for delayed answer.


-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com


More information about the Users mailing list