In this exercise, you have created a plug-in project that
demonstrates the use of the actionValidators, parameterValidators,
and customParameterControl extension points.
Results
You should
run or debug your plug-in project now. Do
the following while still in the testing workspace to verify the functionality
of your plug-in:
- Be sure that you are in the zOS Projects perspective
and are connected to your host system. Use the port numbers associated
with the updates you did on the PDS RAM in Lesson 1.
- Open the CARMA Repositories view and connect
to the PDS RAM you modified in Lesson 1.
- Expand the RAM down to an individual CARMA Member. Right click
on this member, and select Custom > HowTo.
The HowTo dialog box will open.
Tip: If
you have trouble getting this dialog box to open or for the custom
option to be available, check back through the steps you followed
in Lesson 1 or consult the CARMA Developer's Guide.
- The first thing you will check for is that the parameterValidator extension
is working correctly.
- In the first text field, enter 0. An informational
message should appear in the header of the dialog box.
- Now enter 1 in the text field. The message
should change to a warning message.
- Entering 2 or other numerical value should
result in a displayed error message and the OK button
disabled.
- The final test for the parameterValidator extension
is attempting to enter a nonnumeric character, such as a.
The input should not be allowed and won't even appear within
the text field.
- Next, you will check theactionValidator extension.
- The first test is to see if the appropriate parameter you coded
to be required is marked with an asterisk. For this sample, the first
parameter should be marked with the asterisk, but no other parameters.
- The second test is to ensure that the form will not be accepted
if both strings are provided. For this sample, when you enter a value
into both string fields, you should see an error message displayed
and the OK button should be disabled.
- Finally, you will test the customParameterControl extension.
- The first test is to check to see if a checkbox has replaced the
default text field and that selecting and deselecting the checkbox
does not cause any errors.
- The second test is to see if the default label provided, Y/N? was
kept.