Allows filtering of vector features based on logical operators applied on the feature attributes.
Sample configuration.
<attributefilterpanel>
<name>MyAttributeFilterPanel</name>
<options>
<label>Attribute Filters</label>
<filters>
<filter>
<name>geobidule</name>
<label>GeoBidule Filter</label>
<resourcename>R_FS_geobidule</resourcename>
<logical_op>and</logical_op>
<ignoreempty>true</ignoreempty>
<fields>
<field>
<name>color</name>
<operator>eq</operator>
<xtype>textfield</xtype>
<label>Color = </label>
</field>
<field>
<name>size</name>
<operator>gt</operator>
<xtype>textfield</xtype>
<label>Size ></label>
</field>
</fields>
</filter>
<filter>
<name>geobidule2</name>
<label>GeoBidule Filter II</label>
<resourcename>R_FS_geobidule</resourcename>
<logical_op>and</logical_op>
<ignoreempty>true</ignoreempty>
<fields>
<field>
<name>price</name>
<operator>le</operator>
<xtype>textfield</xtype>
<label>Price <= </label>
</field>
<field>
<name>construction_date</name>
<operator>gt</operator>
<xtype>datefield</xtype>
<label>Construction date ></label>
<format>n/j/Y</format>
</field>
</fields>
</filter>
</filters>
</options>
</attributefilterpanel>
<xsl:template name="attributefilterpanel:drawWidget">
<xsl:param name="pWidgetName" />
<!-- <![CDATA[items: [objGPWidget]]><xsl:value-of select="$pWidgetName" />] -->
<![CDATA[objGPWidget]]><xsl:value-of select="$pWidgetName" />
</xsl:template>
label: | The label to display in the widget panel’s title |
||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
filters: |
|
featureserver
read