Method Configuration (Magic xpi 4.5)
The Method Configuration dialog box enables the generation of component methods based on existing code. The dialog box displays the required methods from these classes. This feature will update the component XML with generated method definitions.
The dialog box includes the fields described below.
|
|
Methods
|
Name
|
The name of the method used by the server at runtime. This is a public name for Magic xpa components and a method name for Java components. Names with special characters,such as a period (.), question mark (?), or slash (/) cannot be loaded.
|
Display Name
|
The general name of the method. The name should start with an Alpha value.
|
Description
|
A brief description of the method.
|
Method Arguments
|
Name
|
The name of argument sent to the component by an external call to Magic xpi. The name should start with an Alpha value.
|
Type
|
The data type of the argument. You can select: Alpha, Numeric, Logical, Date, Time or BLOB.
|
Picture
|
A string of characters that tells Magic xpi how to define the format of the argument. For example, a 15-character alphanumeric parameter has a picture definition of 15. A picture that defines a date is DD/MM/YYYY.
|
Direction
|
The direction of the argument. Use the drop-down list to select whether the argument is an input or output parameter or both.
|
Runtime Order
|
Indicates the actual order of the arguments during runtime.
|
Argument Properties
|
Display Name
|
The name of the argument.
|
Tooltip
|
The tooltip that will appear when the cursor hovers over the argument.
|
Value Type
|
Determines how the parameter value is entered by the user. Select one of the following from the drop-down list:
-
Expression (default)
-
Variable
-
Fixed Value
|
Visibility
|
Determines whether the argument is displayed in the Direct Access Method Configuration dialog box. Select one of the following from the drop-down list:
|
Mandatory
|
Indicates whether the argument must have a value (or default value) when sent to the trigger. You cannot define a field as mandatory if it is invisible and does not have a default value. Select the check box to define a field as mandatory.
|
Default Value
|
You can specify a value or an expression (depending on the Type property) that will be set automatically by Magic xpi if the received argument does not have a value.
If this value is not blank, the argument in the Direct Access Method Configuration dialog box will be updated with the default value and will be read-only.
|
This dialog box also contains the following button: