Share
 
 

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:

  • Default unit—Displays the industry model default unit as specified in the unit settings during the creation of the industry model.
  • Unit item—Displays an individually selected unit.
  • Unit from attribute—Displays the unit as specified in the attribute’s unit type during the creation of the feature class attribute in the data model administrator.
  • Unit from SQL field—Displays the unit that is stored with a feature in a special feature attribute.

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.

Was this information helpful?