[mapguide-users] field display order...

James Card James.Card at calcad.com
Tue Jul 25 15:34:41 EDT 2006


On Tue, 25 Jul 2006 12:01:49 -0700, Andrew DeMerchant  
<andrew.demerchant at gemtec.ca> wrote:

> Does anyone know of a way to change the field display order for a layer?
> I want to chaneg the order of the fields that show up when you select a
> feature on a layer...is that even possible? I'm using Studio, and
> haven't found any way yet....

I did this on one of our servers a while back. As I recall it only  
required that I comment out this statement  
"properties.sort(CompareProperties);" at line 2294 in ajaxmappane.templ.  
Then the properties are displayed in the same order they appear in the  
underlying datasource.

The other thing I've done is add leading SPACE charcters to the display  
name for the field in the Layer setup. Since HTML collapses multiple  
spaces into a single space this allows me to specify exactly which order  
they sort in.

It would be wonder to have and ORDER BY clause available.

-- 
James Card
California CAD Solutions, Inc.
209 578-5580




More information about the Mapguide_users mailing list