<div>I am trying to use variable substitution with chameleon, but I have not achieved that it works.</div><div>Someone might indicate how to do that.</div><div><br></div><div><br></div><div>In mapfile I introduce this sentences</div>
<div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>DATA "select * from localidad inner join base on localidad.localidad=base.localidad where base.pack='%pack%'" </div>
<div>
<br></div><div>and, into de index.html, theese</div><div><br></div><div><div><div>$oApp->CWCInitialize( $szTemplate, $szMapFile, $szContext );</div><div><b>$oLayer = $oApp->moMapSession->oMap->getLayerByName('layer name');</b></div>
</div><div><b>$oApp->setVar('pack', 'variable value' );</b></div><div>$oApp->CWCExecute(array(dirname(__FILE__)."/widgets"));</div></div><div><br></div><div><br></div><div>thanks</div><div>
<br></div></div>Alejandro Narváez<br>