Define Operation Parameters in a Signature

Parameters enable you to pass information in and out of operations. For Uniface components, you can define parameters by entering ProcScript in the appropriate operation or trigger. When integrating non-Uniface components, you can define parameters in the component signature using the Signature Editor.

When you define parameters for a method or operation, the list of parameters must match the number, type, and order of arguments for the operation as used in the activate statement.

To define or edit the parameters of component implementations:

  1. To create a new parameter, in the Signature Editor:
    1. Click the + button beside the Parameter fields.
    2. Enter a name and select or clear the In and Out check boxes as required.
  2. To edit a parameter, select it in the Sand click >> adjacent to the Parameter fields.

    Note:  You cannot define parameters for the ACCEPT or QUIT operations.

    The Define Parameter form is displayed.

  3. Select an existing parameter or click New and enter the parameter name in the Name field.

    If the parameter is used in an activate statement, the parameter name can be a component variable, string, field, or entity.

  4. Set the Data Type and Direction properties.
    • If the parameter is a field, component variable, or string, select Basic and select a Uniface data type from the list.
    • if the parameter is an entity parameter or occurrence, select Entity or Occurrence and enter or select the name of an analyzed application entity. For restrictions on these data types, see Corresponding Model and Entity Name.
  5. Select the required implementation from the list and specify the following attributes:

    If you created a new parameter, Uniface generates the default name ComponentName_ParameterName to ensure that it is unique.

  6. To delete a parameter from the signature, in the Define Parameter form, select the operation you want to delete and click Delete.

Related Topics