Adding User-Defined Fields
To create a user-defined field, follow the steps below:
- From the Sidebar, navigate to the field list of the object class where you want to add a UDF. For example, to access
Assetfields, go to General > Fields > Assets or to Workflow and Business Logic > Asset Management > Assets > Fields.
- Click New. The New User Defined Field dialog box appears.
- In the Field Name field, enter the name of the new field, which must be unique within the object class. The name of the actual field added to the database table will be automatically prefixed with UDF_. The Origin field displays the table name in the database.
- Select a field type from the Field Type list.
INFO: For details, see User-defined field types.
- Specify the Field Label.
For Lookup and Reference fields, which appear on the object Full Form as drop-down lists where the user can select a single value, you can specify a filtering condition that drop-down list items must satisfy to be displayed in the field. Click the Build Expression button in the Filter field and create a filtering expression.
NOTE: This filter applies only to the object Full Form. For fields that are displayed on Action Forms, you can specify a separate filter. For more information, see Adding Physical Fields on Forms.
- For a Float field, optional: In the Decimal Places field, specify a number of decimal places which will be used as a format for input and display of values. By default, a Float field has 2 decimal places.
- For a String, Encrypted or Lookup field, optional: Specify the length of this field in characters in the Size field.
- For a Reference field: Under Reference, select the list of objects that will be available for users to choose a reference object from. If you select “Person”, the UDF will offer the list of active Person records. If you select “Technician” the field will offer the list of active Person records marked as Technician.
- For a Lookup field: Under Lookup Values, specify values for the drop-down list:
- Click New to bring up the Add Value dialog box.
- Type a value. You can enter values longer than specified field size, however the extra characters will be discarded.
Repeat these steps to add as many items as needed.
- To arrange items in the list, use Move Up and Move Down buttons.
- To make the field either mandatory or read-only, select the corresponding check boxes under Options.
- If you are creating a user-defined field to hold internal values for your workflow, it doesn't need to be visible to the users. In such a case, select the Hidden check box. Fields marked Hidden can be only accessed by the Alloy Navigator administrator.
INFO: For details on hiding UDFs, see Hiding UDFs From Users.
INFO: For details on configuring workflow, see Workflow Management.
- Click OK.
- Click Save on the Standard toolbar to save the changes.