Creating a Scalar Parameter

Scalar parameters are conventional name-value pair parameters.

To create a mandatory, optional, or indexed scalar parameter:

  1. From the Studio menu, select Show Design Perspective.

  2. Click the tab for the Dictionary view.

  3. Right click in the Dictionary view and select Add Simple Schema Element.

    The Create Data Schema Element wizard appears.

  4. Enter the following:

    1. In the Entity field, enter the name of the project to which you want to add a scalar parameter.

    2. In the Name field, enter an element name.

    3. In the Display Name field, enter a display name. The Data Schema editor supports multiple languages for this field. The field adjacent to Display Name displays your language. You can define a Display Name field value for any language you select from the list. For more information, see Oracle Communications Design Studio Help.

    4. In the Multiplicity field, select one of the following:

      • Required: This attribute makes the parameter mandatory.

      • Optional: This attribute makes the parameter optional.

      • Range: Any ranged parameter with a Minimum value greater than 0 is considered a mandatory ASAP parameter. Any ranged parameter with a Minimum value of 0 is considered an optional ASAP parameter.

  5. Click Finish.

    The new parameter appears in the Dictionary view. You may need to expand the schema for your cartridge to see it.

  6. Double-click the new parameter to open the Data Schema editor with that parameter selected.

  7. Click the Activation subtab.

  8. From the Runtime type list, select SCALAR.

  9. (Optional) Select Indexed to index the parameter.