HOWTO
Applies To:
ITScriptNet V1/V2
This sample illustrates how to us the Default Repsonse property of a prompt to increase speed and efficiency of hand entered data by placing a commonly used value in the prompt when it is displayed to the user. This allows the user to quickly accept the value or to type in the correct value to overwrite the existing value.
This functionality is useful when there is a value which is most frequently used on a particular prompt, such as a prompt recording quantity information.
DETAILS
The Default Response property of a prompt can be set one of two ways: First, a static value can be placed in the Default Response field of the prompt's Input tab. Secondly, a script can be placed in the Fn button to the left of the Default Response property field to run a script to set the property value dynamcially during program execution.
Place the following code in the Default Response property script of the Quantity Prompt.
QUANTITY PROMPT: DEFAULT RESPONSE PROPERTY
;INCREMENT COUNT VARIABLE
@Count@ = @Count@ + 1
;RETURN @COUNT@ AS DEFAULT VALUE
@Count@
- Increment @Count@ value.
- Return @Count@
* The last evaluated line of the Default Script returns the value used by the Default Property of the prompt.
* The Default Script runs when the prompt is initialized.
This article last updated:
1/1/2009 12:00:00 AM