Dimension and measurement unit

Build 1501 on 14/Nov/2017  This topic last edited on: 24/Sep/2015, at 17:27

Numeric attribute types – Int, Long, Short, Float, Double and Decimal – can have a defined dimension and measurement such as; length, weight, time, datasize, etc. Each dimension has an associated and fixed list of allowable measurement units.

The complete list of dimensions and their associated measurement units can be found at:

http://tech.teradp.com/tech/html/gn4/docs/VSdoc/frlrfTeraDPGN4CommonDimensionClassTopic.html

The schema extension named ‘dimension’ is used to set a specific dimension and unit. Here are three examples:

<xs:attribute

 name="width"

 type="xs:float"

 use="required"

 gs:dimension="length:cm">

<xs:attribute

 name="duration"

       type="xs:float"

 use="required"

 gs:dimension="time:s">

<xs:attribute

 name="size"

 type="tNonNegativeInt"

 gs:compute="true"

 gs:size="Main"

 gs:dimension="datasize:byte">

See also

Displaying units in a directory style

Displaying units in an editing form