[Chameleon] variable sustitution

Julien-Samuel Lacroix jlacroix at mapgears.com
Mon Feb 22 11:04:18 EST 2010


Hi,

Add the following in your template:
<input type="hidden" name="pack" value="[$pack$]">

The variable you set via the code are not automatically added to hidden 
variables of the form.

Julien

Alejandro Narvaez wrote:
> I am trying to use variable substitution with chameleon, but I have not 
> achieved that it works.
> Someone might indicate how to do that.
> 
> 
> In mapfile I introduce this sentences
> 
> DATA "select * from localidad inner join base on 
> localidad.localidad=base.localidad where base.pack='%pack%'" 
> 
> and, into de index.html, theese
> 
> $oApp->CWCInitialize( $szTemplate, $szMapFile, $szContext  );
> *$oLayer = $oApp->moMapSession->oMap->getLayerByName('layer name');*
> *$oApp->setVar('pack', 'variable value' );*
> $oApp->CWCExecute(array(dirname(__FILE__)."/widgets"));
> 
> 
> thanks
> 
> Alejandro Narváez
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon

-- 
Julien-Samuel Lacroix
Mapgears
http://www.mapgears.com/


More information about the Chameleon mailing list