This documentation supports the 22.1 version of BMC Helix Innovation Studio.

To view an earlier version, select the version from the Product version menu.

Adding a temporary id generator to a view

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.

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.

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 the Palette, drag the Temp Id Generator component to the Record editor component.
  5. In the Properties pane, click Settings , and then specify the properties:

    PropertyDescriptionExample
    Field name

    Select the field in which you want to store the value from the temporary id.

    Display labelEnter 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.
      ConditionBuild 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

  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:

Was this page helpful? Yes No Submitting... Thank you

Comments