Creating or modifying custom record definitions
The following image displays an example of a custom record definition:
You can create and also update an existing custom record definition.
Before you begin
Make sure you complete the following tasks:
- Configure a Custom type data source. For more information, see Configuring-a-data-source.
- Create an alias mapping or connection mapping for the data source that you selected. For more information, see Mapping-the-Data-Source-alias-to-an-appropriate-data-source-configuration.
To create a custom record definition
- Log in to BMC Helix Innovation Studioand navigate to the Workspace tab.
- Select the application for which you want to create the custom record.
- On the Records tab, select New > Custom record.
In the Create new custom record dialog box, complete the fields as described in the following table:
Field
Description
Name
Enter the name for the custom record definition.
Data source name
From the list, select the name of the data source that you have configured. For more information, see Configuring-a-data-source.
Important: All the data sources that you have configured for custom records are displayed in the list.
- Click Create.
A custom record definition is created with the following out-of-the-box fields:- Display ID
- ID
- Data Provider ID
- To add multiple record definitions, click Add Source Record Definition.
- In Add Record Definition dialog box, from the Record Definition Name list, select your source record definitions.
- In the FIELD MAPPINGS section, click Add/Remove Field Mappings, and map the Display ID and ID fields with the fields from the source record definition.
The Add/Remove Field Mappings window displays sections for each of the source record definitions you have selected. - In the Add/Remove Field Mappings window select the source record definition, and from the Source Field list, select the source field that you want to map with the selected field.
- Click Save.
- (Optional) To add new fields to the custom record, click New Field, and select the required datatype for the field.
In the Details section provide the following details for the field:
Field
Description
Name
Enter the name of the record field.
Description
Enter the description for the record field.
Field ID
Enter the field ID for the field.
(Optional) Named List
Select the named list that you want to associate with the record field.
- In the FIELD MAPPINGS section, click Add/Remove Field Mappings, select the source record definition, and from the Source Field list select the source field that you want to map the newly added field.
At runtime, the newly added field will display the data from the field that you selected from the Source Field list. - Click Save.
To add field mapping for selection fields
Selection fields provide users with a group of choices from a list. A selection field can be for a single selection or for multiple selections.
- Log in to BMC Helix Innovation Studioand navigate to the Workspace tab.
- Select the application to which you have added the custom record.
Select the custom record, select New Field > Selection, and provide the following details:
Field
Description
Name
Enter the name of the record field.
Description
Enter the description for the record field.
Field ID
Enter the field ID for the new selection field.
- To add multiple options to the selection field, from the Options field, click Edit.
In the Add/Remove Selection Options window, click Add option, and provide the following details:
Field
Description
Example
Name
Enter the name for the new selection option.
Integer Value
Enter the value for the selection option that will be stored in the database as an integer.
- Click Save.
- In the FIELD MAPPINGS section, click Add/Remove Field Mappings, and map the selection field with the relevant fields from the source record definition.
- In the Add/Remove Field Mappings window, select the source record definition, and from the Source Field list, select the source field that you want to map with the selection field.
For example, in the following image, the Status selection field is mapped to the Status field from the Issue and Problem record definition. - Click Save.
To map the values of the selection field with the values from the source record definition field, from the Options field, click Edit.
- To map the source field values for the selected option, in the Add/Remove Selection Options window, for every selection option, click Map values.
- In the Map Values window, from the Options list, select options from the source selection field to map with the value of the selection field.
For example, in the following image, the In progress selection option is mapped to the Assigned option from the Status field of the Issue and Problem record definitions.
Make sure you map all the values of the selection field with the values from the source record definition field.
- Click Save.