Hi,<br><br>I need to change the data of a layer based on a parameter. So, I'm generating the mapfile dinamically and setting it by mySetMap('mapfile_tmp'). The problem is if i change the data and set the mapfile with the same name, the layer didn't change.
<br><br>Example:<br><br>MapfileA<br><br>map<br> layer<br> connectiontype POSTGIS<br> data "the_geom from table"<br> ...<br> end<br>end<br><br>Then i change the mapfile to:<br><br>map<br>
layer<br>
connectiontype POSTGIS<br>
data "the_geom from table where column = 'foo' "<br>
...<br>
end<br>
end<br>
<br>And I set the mapfile mySetMap('MapfileA').<br><br>What I'm doing wrong?<br><br>What i need to do is to change the data of a layer when an user make a search.<br>