Moxi Media Inc.
<FIELD> Tree View | Discussion Forum
IMF Developer's Guide » Map Configuration » <FIELD>  

The <FIELD> element is used to set an alias name for a field in a layer, so that the alias is used as a label in the default report or to name the parameter when calling the URL of a handler. There is also an attribute the set the visibility of the field so that it doesn't show up in a default reports.

Frequency Parent Elements (this element is valid within):
PO+ <WMS-LAYER>
   

Attributes Description
name Used to find the field to set properties for. Must match the FULL name of a field in a feature layer in the map service. Required.
alias Sets an alternate name to use when listing this layer in the layer list or on the select by attribute or find by attribute routines. Optional.
can-select-by-attribute Specifies that the field can be used in the select by attribute routines. Must be supported by a WFS in order for this to work. Valid values are "true" or "false". Optional, defaults to "false".
format

Sets a formatting routine for the display of field values on the default identify and selection pages. Valid values / examples are:

currency
Currency format for numeric fields only.

date,short
Short date format for date fields only.

date,medium
Medium date format for date fields only.

date,long
Long date format for date fields only.

date,full
Full date format for date fields only.

datetime,short
Short date and time format for date fields only.

datetime,medium
Medium date and time format for date fields only.

datetime,long
Long date and time format for date fields only.

datetime,full
Full date and time format for date fields only.

initcap
First letter of each word capitalized (e.g. proper names) format for text fields only.

lower
Lower case format for text fields only.

precision,2
Rounding format for floating point numeric fields only.
The number after the comma can be 0 - 9.

replace,string1,string2
String substitution format for text fields only.
All occurrences of the first string will be substituted with the second.

time,short
Short time format for date fields only.

time,medium
Medium time format for date fields only.
time,long

Long time format for date fields only.
time,full

Full time format for date fields only.
upper

Upper case format for text fields only.
hypertext-message Sets the hyperlink text shown on the default reports when a field contains a URL address. Optional. Defaults to "more data" in the english locale.
hypertext-popup Specifies whether the document opened by a field hyperlink opens in the same or another window. Valid values are "true" or "false". Optional, defaults to "true".
identify-handler-alias Sets an alternate name to use when setting the parameter name for a field in a "urlFieldValues" or "urlMultipleFieldValues" identify report. Optional.
metadata-url Sets the field metadata URL to the value specified. Optional.
select-handler-alias Sets an alternate name to use when setting the parameter name for a field in a "urlFieldValues" or "urlMultipleFieldValues" select report. Optional.
visible Sets the visibility of the field when used with the default identify or select report. Valid values are "true" or "false". The default is "true". Optional.
   

Frequency Description (in this context)
PO+ The <FIELD> element is optional and may appear multiple times within the <WMS-LAYER> element.
   

Valid HTML 4.01!