[mapguide-users] field display order...

Andrew DeMerchant andrew.demerchant at gemtec.ca
Tue Jul 25 15:39:12 EDT 2006


That "space" trick is pretty smart....but the spaces aren't collapsing 
for me for some reason....I may just take out that line that you 
suggest, since I think that my fields will be in a nice order without 
being sorted.

James Card wrote:

> 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.
>

-- 
	*Andrew DeMerchant*
*Computer Technologist*
ph.1-877-4GEMTEC x.163
fax 506-453-9470

/GEMTEC Limited <http://www.gemtec.ca>
/191 Doak Road
Fredericton, NB, Canada
E3C 2E6

-------------- next part --------------
Skipped content of type multipart/related


More information about the Mapguide-users mailing list