User Level
Business Administrator
User LevelBusiness Administrator SyntaxAdd DimensionBefore attributes can be defined with a dimension, the dimension must be created. You can define a dimension if you are a business administrator with Attribute access, using the add dimension command. Syntax
The Add Dimension clauses are:
Unit ClauseThe Unit clauses are:
Label ClauseThe Label clause provides a description of the units. For example, if the unit is F, the label could be degrees Fahrenheit. Multiplier ClauseThe Multiplier clause provides the value to multiple against the normalized value when calculating the value for units other than the default units. Default ClauseThe Default clause of the Add Unit command defines the unit as the default for the dimension. Default units are the normalized units–the units used to store the attributes value in the database and with a multiplier of 1 and offset of 0. Settings ClauseSettings are allowed on a unit. History Clause
The
ExampleThis Add Dimension command creates the dimension Length with units “in”, as the default, then adds units for cm, ft, and meter with the appropriate multipliers. For this dimension, no offset is required,
Copy DimensionYou can clone the definition with the Copy Dimension command. This command lets you duplicate defining clauses with the option to change the value of clause arguments. Syntax
History Clause
The
Modify DimensionAfter a dimension is defined, you can change the definition with the Modify Dimension command. This command lets you add or remove defining clauses and change the value of clause arguments.
You can make the following modifications to an existing dimension definition. Each is specified in a Modify Dimension clause, as listed in the following table. You only need to specify fields to be modified.
Assume you have the following dimension definition:
To add meters as a unit of the dimension, you can modify this dimension with the following command:
After this command is processed, the dimension definition for the Units attribute is:
The system modifier allows units to be grouped and associated with other units within a dimension. For example, if you have a Length dimension, you can group meter, centimeter, and millimeter with a system modifier named Metric, and feet and inches with a system modifier English. When specifying a system for a unit, you also specify which units of that system you want the current unit to be converted into. When converting lengths from English to Metric, you might want inches to be converted into centimeters, while feet are converted into meters as shown in this example dimension definition:
Delete DimensionIf a dimension is no longer required, you can delete it by using the Delete Dimension command.
You can only delete a dimension if it has not been applied to any attributes. Searches the list of defined dimensions. If the name is found, that dimension is deleted if it has not been applied to any attribute. If the name is not found, an error message is displayed. For example, to delete the Length dimension, enter the following command:
After this command is processed, the dimension is deleted and you receive an MQL prompt for another command. |