Hi.<br><br>I&#39;m using wms service to load layers in openlayers. This works fine, but I have a problem.<br>I need to use different filters options to load data. I need a dynamic filter<br><br>My layer is some like this :<br>
***********<br>   LAYER<br>        NAME &quot;Polizas&quot;<br>        STATUS ON<br>        CONNECTION &quot;polizas.ovf&quot;<br>        CONNECTIONTYPE OGR<br>        DATA &quot;polizas&quot;<br>        TYPE POINT<br>        METADATA<br>
            &quot;wms_name&quot; &quot;Polizas&quot;<br>            &quot;wms_server_version&quot; &quot;1.1.1&quot;<br>            &quot;wms_format&quot; &quot;image/png&quot;<br>            &quot;wms_transparent&quot; &quot;true&quot;<br>
        END                    <br>        FILTER (([cod_suc] eq %CODSUC%) and ([cod_ramo] eq %CODRAMO%) and ([cod_lin_business] eq %CODLINEA%) and (&quot;[geoestado]&quot; eq &quot;%GEOESTADO%&quot;) and (&quot;[txt_municipio]&quot; eq &quot;%CIUDAD%&quot; ) )<br>
        CLASS<br>           STYLE<br>               SYMBOL &#39;circle&#39;<br>               SIZE 8<br>               COLOR 255 255 0<br>               OUTLINECOLOR 0 0 0<br>           END<br>        END<br>    END   <br>
*************<br><br>I some cases I need all filter options :<br>        FILTER (([cod_suc] eq %CODSUC%) and ([cod_ramo] eq %CODRAMO%)
and ([cod_lin_business] eq %CODLINEA%) and (&quot;[geoestado]&quot; eq
&quot;%GEOESTADO%&quot;) and (&quot;[txt_municipio]&quot; eq &quot;%CIUDAD%&quot; ) )<br>but other cases I need 2 parameters or 3 parameters<br>        FILTER (([cod_suc] eq %CODSUC%) and ([cod_ramo] eq %CODRAMO%)
)<br>        FILTER (([cod_suc] eq %CODSUC%) and ([cod_ramo] eq %CODRAMO%)
and ([cod_lin_business] eq %CODLINEA%) )<br>or 1 parameter :<br>        FILTER (([cod_suc] eq %CODSUC%) )<br><br>How can I do this?<br><br>Thanks for your help.<br><br>Regards<br><br>Nelson S.<br>