Resource Types (Magic xpi 4.5)
The New Resource Type dialog box lets you view the available resource types and modify the user-defined resource types. It also allows you to add a new resource type with all its properties.
When you click the New button, the New Resource Type dialog box appears. Here you can define a new resource that can be accessed from the Settings dialog box's Resources section. Once you have entered a name and a description for your new resource type, you should enter its arguments as follows:
|
|
Resource Details
|
Name
|
The resource's name.
|
Description
|
A description of the resource.
|
Arguments: Click Add to add new arguments. Click Delete to delete existing arguments.
|
Name
|
The argument name.
|
Type
|
The argument type. Select one of the following from the drop-down list:
-
Alpha
-
Numeric
-
Date
-
Time
-
Logical
|
Length
|
The maximum character length for the type selected above. This field is mandatory.
|
Tooltip
|
Click to open the Tooltip Description dialog box. Enter a tooltip to describe the new argument.
|
Value Selection Type
|
Select whether you want to set an Expression (default) or a Combo. If you select Combo, click to open the Combo Box Values dialog box. Enter the relevant combo box details.
|
Default Value
|
This assigns a default value to the argument. For example, if you define a resource whose first argument is Host Name, the default value can be Localhost. The default value selected must match the field type. If the Password check box is selected, this column is disabled.
|
Password
|
Define whether you want passwords to be visible or to be encrypted and marked with asterisks (*).
If you select this check box, the value is also encrypted in the resource settings XML file.
|
Env Variables
|
Define whether you want the new resource to support environment variables.
|
Mandatory
|
Define whether you want the new resource property to be a mandatory property.
|
Read Only
|
Define whether you want the new resource property to be read-only.
|
Visibility Dependencies
|
Define whether you want the new resource property to have visibility dependencies. Select one of the following from the drop-down list:
-
Yes (default)
-
No
-
Condition
If you select Condition, click to open the Visibility dialog box.
|
Action Buttons: Click Add to add up to three new action buttons. Click Delete to delete existing action buttons.
|
Add Validation Button
|
Select this check box if you want to add a Validation button to the new resource. If you select this, you can then click Add to add and define the Validation button. Click Delete to delete existing buttons.
|
Click OK to save your resource types, or click Cancel to close the New Resource Type dialog box without making any additions or changes.