Field-level behavior defines how a field behaves. The Behavior section of the New Field window or the window that appears when you select a field to edit allows you to define the behavior of a field.
When you define a field property in the Information section of the New Field window, the corresponding options appear in the Behavior section. If a behavior is not supported for a field, in the Behavior section, the option is disabled and displays the value Not Supported. For example, for a field with the Character data type, the Format Value option is disabled and displays the value Not Supported.
By default, the fields that are supported are set to the APM Default option, which indicates that the baseline GE Digital APM rules are applied (that is, the function for that rule type is not defined within the field-specific code item). For the fields of a baseline GE Digital APM family, the rules defined in the Rules Library are inherited at the field level. For a baseline family, the APM Default option indicates that the baseline rules are applied. Depending on the rules that are inherited from the Rules Library, the field may not have any behavior. For the fields of a custom family (a family that is added to the GE Digital APM baseline database), the APM Default option indicates that no rules exist.
In a parent family, when you set the behavior for a field that is spread to its subfamily, and if the field behavior contains a field that is not available in the subfamily, the inherited field behavior for the subfamily is set to APM Default. For example, in the parent family, if you modify Field 1 that is spread to its subfamily and you select Field 3 as the Literal Value for Field 1, and if Field 3 does not exist in the subfamily, the behavior of Field 1 in the subfamily is set to APM Default.
The following table describes the parameters in the Behavior section.
Parameters | Description | Parameter Options |
---|---|---|
Default Value | Defines the default value for a field. |
When you create a new record in Record Manager, by default, the APM Default option is selected. The parameter has the following option:
|
Disable Value | Determines whether the field should be disabled or locked from editing. |
The Disable Value parameter contains the following options:
|
Format Value |
Determines the formatting rules that should be applied to the value of a field. Only the Numeric and Date data types support the Format Value parameter. |
The Format Value parameter contains the following options:
|
Hide Field | Determines whether a field should be shown or hidden. |
The Hide Field parameter contains the following options:
|
Masked Field | Determines whether the characters entered in the field should be masked. |
The Masked Field parameter contains the following options:
|
Required |
Determines whether a value must be entered in a field before you save a record in the family. If you do not enter a value in a required field, then an error message will be displayed when you attempt to save the record. |
The Required parameter contains the following options:
|
Validation |
Defines the validation rules that will be used to validate values that are entered in a field. By selecting Validation, you can force the values in a field to conform to specified limits or criteria that are considered valid. You can define Validation rules for any field. Only the Numeric and Date data types support the Validation parameter. |
The Validation parameter contains the following options:
|
Valid Value |
Defines a list of values that will be available for selection. Only the Character or Text data types support the Valid Value parameter. |
The Valid Value parameter contains the following options:
For more information, refer the example. |
For example, consider a family ‘Equipment’ with three fields Equipment (EQPT), Functional Location (FL), and Manufacturer (MFGR).
The Equipment field contains the following values:
The Functional Location contains the following values:
To populate the MFGR field based on the EQPT and FL, you must create the following three queries:
Functional Location
Create an APM Query for the FL field such that all functional locations are listed.
The following image shows the sample query for functional location.
Equipment
Create an APM Query for the EQPT field that lists the equipment for a given Functional Location. In the Behavior section of the field, in the Valid Value subsection, select the APM Query option and map the Functional Location parameter of the query with the FL field such that the values in the EQPT field in the datasheet are displayed based on the values in the FL field.
The following image shows the sample query for Equipments.
The following image shows the mapping of parameters.
Manufacturer
Create an APM Query, for MFGR field, that lists the manufacturers for an Equipment. In Field Behavior section, in the Valid Value subsection, select the APM Query option and map the Equipment parameter of the query with the EQPT field such that the values in the MFGR field in the datasheet are displayed based on the values in the EQPT field.
The following image shows the sample query for Manufacturer.
The following image shows the mapping of parameters.
After the queries are created, in the Family Fields Sequence Order window, you must arrange the queries in the following order:
1. Functional Location
2. Equipment
3. Manufacturer
The following image shows an example of query arrangement in the Family Fields Sequence Order window.
Assume that the Functional Location Roanoke has the equipments Pump and Motor and with these queries in place, in a datasheet of the Equipment family if a user selects Roanoke in the FL drop-down list box, the EQPT drop-down list box will contain only Pump and Motor. And, if you select Motor in the EQPT drop-down list box, the manufacturer associated with the equipment will be populated in the MFGR field.
Copyright © 2018 General Electric Company. All rights reserved.