Service Types (Magic xpi 4.5)
The New Service Type dialog box lets you view the available service types and modify the user-defined service types. It also allows you to add a new service type with all its properties.
When you click the New button, the New Service Entry dialog box appears. Here you can define a new servcie that can be accessed from the Settings dialog box's Services section. Once you have entered a name and a description for your new service type, you should enter its arguments as follows:
|
|
Service Details
|
Name
|
A unique service name. This field is mandatory.
|
Description
|
A description of the new service.
|
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 service 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 service settings XML file.
|
Env Variables
|
Define whether you want the new service to support environment variables.
|
Mandatory
|
Define whether you want the new service property to be a mandatory property.
|
Read-only
|
Define whether you want the new service property to be read-only.
|
Visibility Dependencies
|
Define whether you want the new service 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 service. 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 service types, or click Cancel to close the New Service Type dialog box without making any additions or changes.