Hi.<br><br>I'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 "Polizas"<br> STATUS ON<br> CONNECTION "polizas.ovf"<br> CONNECTIONTYPE OGR<br> DATA "polizas"<br> TYPE POINT<br> METADATA<br>
"wms_name" "Polizas"<br> "wms_server_version" "1.1.1"<br> "wms_format" "image/png"<br> "wms_transparent" "true"<br>
END <br> FILTER (([cod_suc] eq %CODSUC%) and ([cod_ramo] eq %CODRAMO%) and ([cod_lin_business] eq %CODLINEA%) and ("[geoestado]" eq "%GEOESTADO%") and ("[txt_municipio]" eq "%CIUDAD%" ) )<br>
CLASS<br> STYLE<br> SYMBOL 'circle'<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 ("[geoestado]" eq
"%GEOESTADO%") and ("[txt_municipio]" eq "%CIUDAD%" ) )<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>