Report Designer: Unit Placeholder

Use unit placeholders to display unit names, such as foot, inch, centimeters, for length values.

All available units and their translations are stored in the industry model . If you use a placeholder instead of a static text to display the unit name, the name will always appear in the appropriate language. This is useful if a report is used in different countries, using different languages.

There are different placeholders:

Unit placeholder

Description

For default units:

{Unit.Area}

{Unit.Length}

{Unit.<name>}

Adds a default unit to your report. Click Add menu Unit <name>.

Adds a text control containing the appropriate placeholder.

For unit items:

{Unit.Item("Centimeter")}

{Unit.Item("Foot")}

{Unit.Item("<name>")}

Adds a unit item to your report,. Click Add menu Unit Units. Select a unit from the list.

Adds a text control containing the placeholder.

For attribute units:

{Unit.Attribute("FeatureClassName","AttributeName")}

{Unit.Attribute("FeatureClassName","AttributeName", "DefaultUnitType")}

Adds an attribute unit to your report. Click Add menu Text and enter the placeholder manually in the content property. The expression must be enclosed in braces.

For SQL field units:

{Unit.Field("ColumnName")}

Adds a SQL field unit to your report. Click Add menu Text and enter the placeholder manually in the content property. The expression must be enclosed in braces. ColumnName is the attribute of the current feature class that stores the unit ID. It has to be part of the query result of the particular section.