The Tool has Input Parameter relationship describes exactly one input parameter of a tool. The reference of the relationship is a property whose property value can be passed as parameter to the tool at run time.
The Parameter From attribute determines where the value of the parameters should be obtained from. There are three ways of determining the origin of parameters:
A tool that outputs a property value for a property that already exists in the memory replaces this value, see the figure below.
The Parameter Memory is the temporary storage area for output tool parameters. The values 123, ABC and XYZ are the concrete outputs of the respective tools and are saved as property values. The illustration shows how the property PROP_2 has been referenced for two tools as an output parameter. The second output (XYZ) overwrites the first (ABC).
Attributes of tool input parameters:
Attribute | Type | Description |
---|---|---|
TargetIDFile[D] | File Descriptor | Reference to a file descriptor. Only visible if the type attribute has been set to File. |
TargetIDParm[D] | Property | Reference to a property. Only visible if the type attribute has been set to String. |
Label [O] | String | Label of the parameter in dialog boxes. |
Parameter From [M] | Selection | Determines from where the property value of the parameter property should be obtained.
Valid values include:
|
Mass Processing | Boolean | If set to false, the input is expected from a single context. If set to true, the input is expected from a mass context. |
StaticValue [O] | String
(multi line) |
Sets a fixed value for the parameter. This can only be overwritten via parameter override. Only visible if the type attribute has been set to String. See Parameter Override for more information. |
DefaultValue [O] | String
(multi line) |
The standard value of the parameter. This value is only used if no other property value can be found for the referenced property.
Only visible if the type attribute has been set to String. Initializes a field in an Input dialog box. |
Type [M] | Selection | The type of the parameter. A property or a file descriptor must be referenced on the basis of this attribute.
Valid values include:
The default value is String. |
Tool input parameters of deprecated tools created before Visual COBOL 5.0 have the following attributes:
Attribute | Type | Description |
---|---|---|
TargetIDFile[D] | File Descriptor | Reference to a file descriptor. Only important if the type attribute has been set to File. |
TargetIDParm[D] | Property | Reference to a property. Only important if the type attribute has been set to Mass Processing or String. |
DefaultValue [O] | String
(multi line) |
The standard value of the parameter. This value is only used if no other property value can be found for the referenced property.
Has no meaning for file parameters. Initializes a field in an Input dialog box. |
Label [O] | String | Label of the parameter in dialog boxes. |
Parameter From | Selection | Determines from where the property value of the parameter property should be obtained.
Valid values include:
|
StaticValue [O] | String
(multi line) |
Sets a fixed value for the parameter. This can only be overwritten via parameter override. See Parameter Override for more information. |
Type | Selection | The type of the parameter. A property or a file descriptor must be referenced on the basis of this attribute.
Valid values include:
The default value is String. |
Ui Category [O] | String | Categorizes the parameter in dialogs. Categorized parameters are enclosed in a labeled frame. Successive parameters with the same category are enclosed by the same frame and ordered by sequence number. See The "UI Category" Attribute for more information. |
Ui Tab [O] | String | Allows the assignment of parameters to tabs. Tabs are individual dialog pages which are activated by clicking the tab label at the top of the dialog. Successive parameters with the same tab are displayed in the same tab page. This works only for Input dialog boxes. See The "UI Category" Attribute for more information. |
Ui Editable | Boolean | Indicates whether the parameter can be edited in input dialog boxes. Fields are never editable in an output dialog box.
The default value is true. |
Ui GenericAllowed | Boolean | Indicates whether wildcard characters are permitted as user input. If false, the input dialog box cannot be confirmed if
wildcard characters are present in the input field. See
Application Options for more information.
The default value is false. |
Ui Mandatory | Boolean | Indicates whether the field is mandatory in Input dialog boxes. If true, the dialog box cannot be confirmed when the field
contains no values.
Mandatory fields are marked with an asterisk *. The default value is true. |
Ui Form [O] | String | Specifies formatting information for the field in Input dialog boxes. Valid values include: BOLD, HIDDEN, RED, GREEN, YELLOW, BLUE, GRAY. |
Ui HelpText [O] | String
(multi line) |
Specifies help text for the field in input dialog boxes which is displayed when the question mark button beside the field is clicked or the F1 key is clicked in the field. Clicking in the input field of the attribute opens a dialog box where the help text can be entered in a formatted way. |
Ui MultiSelection | Boolean | Specifies whether multiple items can be selected. For structured file input parameters only. If set to true, a check box
table is created.
The default value is false. |
Ui Resizable | Boolean |
Specifies whether a dialog field can be resized or not. Properties of types Boolean, TextArea and TextArray cannot be set to be resizable. The default value is true. |
Ui ToolTip [O] | String
(multi line) |
Specifies a tool tip for the field in Input dialog boxes. |
Visible Condition [O] | Visible_Condition | This complex attribute is only relevant for a modeled dialog. It allows you to define rules when the input parameter should be shown in the dialog. See Enabled/Visible Condition for details of how to define an enabled or visible condition. |
Enabled Condition [O] | Enabled_Condition | This complex attribute is only relevant for a modeled dialog. It allows you to define rules when the input parameter should be enabled in the dialog. See Enabled/Visible Condition for details of how to define an enabled or visible condition. |