Adding a temporary id generator to a view
The Temp Id Generator component is available in the Common Components section of the View designer, and is visible only if the Common Components bundle is deployed.
Before you begin
Make sure you create a view definition with Record editor to which you want to add a temporary id generator. For more information, see Creating-a-view-for-a-record-instance-by-using-record-editor.
To add a temp id generator to a view definition
- Log in to BMC Helix Innovation Studio and navigate to the Workspace tab.
- Select the application for which you want to add the Temp Id Generator component.
- On the Views tab, click the name of the view definition to which you want to add the Temp Id Generator component.
- From the Palette, drag the Temp Id Generator component to the Record editor component.
In the Properties pane, click Settings
, and then specify the properties:Property
Description
Example
Field name
Select the field in which you want to store the value from the temporary id.
Display label
Enter a name to display a unique label for the field.
Value
Click Click to build an expression, to set a default value for the field.
For example, if you want to set the default value from any other field or a dynamic value, click Click to build an expression, and select the field.
Disabled
Use the toggle key to disable the Temp Id Generator component, and then select one of the following options:
- At all times—Select this option if you want to disable the component at all times.
- When condition is true—Select this option if you want to disable the component only if a certain condition is met.
Condition—Build an expression to define a condition.
This option is displayed only after you select the When condition is true option.
Hidden
Use the toggle key to hide the Temp Id Generator component at runtime, and then select one of the following options:
- At all times—Select this option if you want to keep the component hidden at all times.
- When condition is true—Select this option if you want to keep the component hidden only if a certain condition is met.
Condition—Build an expression to define a condition.
This option is displayed only after you select the When condition is true option.
Custom settings
Prefix
Enter a letter or group of letters that should be prefixed to the temporary id.
For example, WO
- Click Save.
The following image displays a view that uses the Temp Id Generator component:
Result
The following image displays a view that uses a field for generating temporary id: