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.

Temporary ids, as the name suggests, are temporary objects. They are allocated system memory as long as the server requires it and then the memory is freed up for heap memory.

As a developer or an application business analyst, you can use the Temp Id Generator component to create temporary ids that can be used in record definitions of your application.

Important

Application business analysts can customize the objects developed in their own applications and that are marked customizable by the administrator, but cannot customize the objects developed in com.bmc.arsys in Best Practice Customization mode. For example, objects in core BMC applications like Foundation, Approval, and Assignment cannot be customized in Best Practice Customization mode.  For more information, see Customization-layer.

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

  1. Log in to BMC Helix Innovation Studio and navigate to the Workspace tab.
  2. Select the application for which you want to add the Temp Id Generator component.
  3. On the Views tab, click the name of the view definition to which you want to add the Temp Id Generator component.
  4. From Palette, drag the Temp Id Generator component to the Record editor component.
  5. In the Properties pane, click Settings 22_1_Settings icon.png, 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.

    22_1_Temp Id Generator configuration.png

    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.

    Hidden

    Use the toggle key to hide the Temp Id Generator component at runtime.

    CSS classes

    Defines the style of the component. 

    For more information, see CSS classes used in View designer components.

    Custom settings

    Prefix

    Enter a letter or group of letters that should be prefixed to the temporary id.

    For example, WO

  6. Click Save.

The following image displays a view that uses the Temp Id Generator component:

Important

The value from the Temp Id Generator component is saved to the selected field only after you click Create

Result

The following image displays a view that uses a field for generating temporary id:

22_1_Temp Id Generator example.png

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*