5.3.6 Editing a Data Field
By selecting a data field element in the tree, its properties are shown in the configuration area in the service editor. There are a number of properties that can be edited. Some of these properties are available depending on the data type of the field being defined.
The properties are described in Table 24.
| Property | Description |
|---|---|
| Name | The name of the data field, or hierarchical field. The case-sensitive name identifies the field and must be unique for data fields. For hierarchical fields, the name has to be unique at the same level, in a hierarchical structure. |
| Tag number | A numeric ID for the field, which may be used as a complement to the Name when identifying a field. |
| Comment | An optional comment for the data field. |
| Data type | The data type for this data field. The data type is edited by choosing from a drop-down menu. More information about the available data types can be found in Section 5.3.12. |
| Parameter type | Describes the origin of the data field. More information about the parameter type is be found in Section 5.3.6.1. |
| Mandatory | Defines if the data field is mandatory. If a field is mandatory, it is selected by default in the simulator. |
| Show in plug-ins | Determines if the data field should be available in standard ERE field-oriented plug-ins. If this check box is checked the data field is available, otherwise it is not. The availability of the field is also determined by the presence of constraints and the status of other settings such as parameter type and data type. |
| Allow negative balance | For a field of the data type Amount, this check box determines if a negative balance input is allowed. |
| Amount Factory | For a field of the data type Amount, this parameter specifies a factory class for creating Amount objects. This feature is not currently supported in ERE. |
| Beginning of Time | For a field of the data type Date, this parameter specifies a label for the Beginning of Time date constant. See Table 30. |
| End of Time | For a field of the data type Date, this parameter specifies a label for the End of Time date constant. See Table 30. |
| Collection | Defines if the field should be made a complex field. A collection may contain values, or data fields, identified by an index or key, instead of one single value. The options in this menu are:
The different types of collections are further explained in Section 2.3.6.1. |
| Default | The default value for this data field. It can be set to any value, regardless of the specified range for the field or any specified enumeration constant. If the collection parameter is set to array or map, an array editor is available here. A description of this is found in Section 6.7.1. |
| Input Restriction | This field opens an editor for entering restrictions on the data which may be entered in the data field. The options are:
Section 5.3.6.2 describes these restrictions in more detail. |
| Editor class | This field contains the fully qualified class name to an editor which takes care of the input to the field. This editor class must implement the Simulation Editor class, which may be found at ericsson.ere.gui.interfaces.SimulationEditor. This field is only visible if no input restriction has been chosen for the data field. |
| Key | This option is only visible in a hierarchical field collection, when the collection type is selected as MAP. It gives the identity of the field to be used as the key field for the map collection. This value is chosen from the data field defined in the collection by selecting the Key check box , see Figure 20. More than one data field can be chosen as a key field. These fields are combined to create a composite key for the map collection. |
| Tooltip | Fields can be defined with an optional description which is displayed in the selection tree editor, where a field is selected from a field chooser. The tooltip description is displayed when placing the mouse pointer over the target field name, see Figure 79. This makes it easier to know the purpose of the field. |