Collection form
|
|
Complete the fields on this tab to define a list of named data types that can be passed to the collection. At run time, the values of these parameters are referenced by the fields on the Rules tab and Pre/Post Actions tab of the form.
The fields on this form are optional. Not every collection has parameters.
The following fields appear as columns in a grid. Each row represents a distinct parameter. Empty rows are not evaluated. You can add a row to define a new parameter or delete an existing row.
Field |
Description |
Name |
Enter a unique Java identifier that does not use reserved names. The name you provide appears in prompts used by the Collect instruction and Parameters section when the collection is called. |
Description |
Enter text that briefly describes the purpose of the parameter. The description you provide appears as a tool tip used by the Collect instruction and Parameters section when the collection is called. |
Data Type |
Select a data type to store the parameter value. Options include: |
Required? |
Select an option to indicate whether the parameter requires a non-null value:
As a best practice, select |
Type for SmartPrompt |
Enter the name of a concrete class. When this field is populated, a SmartPrompt is used by the Collect instruction and Parameters section to prompt you for a parameter value. Each item in the list represents a rule with pxObjClass set to the specified class name. Each concrete class has one or more key parts. When a class has an applies to key part, the SmartPrompt automatically limits the results to instances with the same applies to class as the calling collection or activity. |
Validate as |
Enter text to refine the results displayed in the SmartPrompt. Only use this field when the class name in the Type for SmartPrompt field has two or more key parts that do not represent an applies to class. You can enter Rule-Obj-FieldValue in the Type for SmartPrompt field that has three key parts. Enter "pyCaption" in the Validate as field to prompt you with a list of field values with a field name key part containing the string "pyCaption". |
When a collection is called, the system places parameter names and values on a nameless, classless page known as the parameter page. You can access values on the parameter page by typing the keyword param
in a field, followed by a period and the name of a parameter.
For example, param.depth
refers to the depth parameter on the parameter page.
The following fields on the Collection form support the param
keyword:
Tab name |
Fields |
Rules |
|
Pre/Post Actions |
|
Use caution when entering the param
keyword in the Property Name field. Any change you make to the parameter page is made visible to the calling activity when the collection ends and the Pass current parameter page option is selected.
Completing the Rules tab of the Collection form |