<div>Julien</div><div><br></div><div>Thanks for your help.</div><div><br></div>I introduce the sentence but doesn't work<div><br></div><div>The template can read and show the variable value, but the mapfile doesn't.</div>
<div><br><div><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; ">I am missing something or I am doing something wrong, I appreciate any help</span></div><div><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><br>
</span></div><div><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><br></span></div><div>Alejandro Narváez<br>
<br><br><div class="gmail_quote">2010/2/22 Julien-Samuel Lacroix <span dir="ltr"><<a href="mailto:jlacroix@mapgears.com">jlacroix@mapgears.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
Add the following in your template:<br>
<input type="hidden" name="pack" value="[$pack$]"><br>
<br>
The variable you set via the code are not automatically added to hidden variables of the form.<br>
<br>
Julien<br>
<br>
Alejandro Narvaez wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">
I am trying to use variable substitution with chameleon, but I have not achieved that it works.<br>
Someone might indicate how to do that.<br>
<br>
<br>
In mapfile I introduce this sentences<br>
<br>
DATA "select * from localidad inner join base on localidad.localidad=base.localidad where base.pack='%pack%'" <br>
and, into de index.html, theese<br>
<br>
$oApp->CWCInitialize( $szTemplate, $szMapFile, $szContext );<br>
*$oLayer = $oApp->moMapSession->oMap->getLayerByName('layer name');*<br>
*$oApp->setVar('pack', 'variable value' );*<br>
$oApp->CWCExecute(array(dirname(__FILE__)."/widgets"));<br>
<br>
<br>
thanks<br>
<br>
Alejandro Narváez<br>
<br>
<br></div></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Chameleon mailing list<br>
<a href="mailto:Chameleon@lists.maptools.org" target="_blank">Chameleon@lists.maptools.org</a><br>
<a href="http://lists.maptools.org/mailman/listinfo/chameleon" target="_blank">http://lists.maptools.org/mailman/listinfo/chameleon</a><br>
</blockquote>
<br>
-- <br>
Julien-Samuel Lacroix<br>
Mapgears<br>
<a href="http://www.mapgears.com/" target="_blank">http://www.mapgears.com/</a><br>
</blockquote></div><br></div></div>