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:
-
To create a new parameter, in the
Signature Editor:
- Click the + button beside the Parameter fields.
- Enter a name and select or clear the In and Out check boxes as required.
-
To edit a parameter, select it in the Sand
click >> adjacent to the Parameter
fields.
Note: You cannot define parameters for the
ACCEPT
orQUIT
operations.The Define Parameter form is displayed.
-
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.
-
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.
-
Select the required implementation from the
list and specify the following attributes:
- Literal Name
- Interface
- Length
- No. of Occurrences —use only for entity and occurrence parameters
If you created a new parameter, Uniface generates the default name ComponentName_ParameterName to ensure that it is unique.
- To delete a parameter from the signature, in the Define Parameter form, select the operation you want to delete and click Delete.