[Chameleon] Output Fields and Aliases

Tyler Mitchell tjm at timberline.ca
Thu Jul 14 12:28:06 EDT 2005


Hi Abe,
We talked about it, I filed a bug about it, but it's still marked as 
futrue.  So I'm assuming there is no support for result_fields built in.

I like your idea of having aliases too.

I started to do the same as you are proposing and would gladly work 
together to see it happen.  We need this function too.

Here's the boog:
http://bugzilla.maptools.org/show_bug.cgi?id=995

Tyler

Abe Gillespie wrote:
> Is there a standard Chameleon API way of getting METADATA-defined
> output fields and aliases.  I have an example mapfile that contains
> the following METADATA items:
> 
> QUERY_ATTRIBUTES
> RESULT_FIELDS
> RESULT_FIELDS_LIMITED
> 
> I'm not sure if these are custom METADATA items or ones used
> particularly with Chameleon.  If there's something already setup in
> Chameleon to handle these, I'd rather go that route than risk
> reproducing something that's already available.
> 
> Basically I want to be able to get the output fields for the LAYER. 
> And then get the alias of each field.  I.e. something like:
> 
> $flds = $chameleonLayer->getOutputFields();
> foreach ($flds as $f)
> {
> 	$alias = $chameleonLayer->getFieldAlias($f);
> 	// Do some HTML output ...
> }
> 
> Again, I can write the code to do this myself.  But I don't want to
> reproduce something that might already be there.
> 
> Thanks.
> -Abe
> 
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
> 
> 


More information about the Chameleon mailing list