Article ID: 10110
HOWTO: Defaulting Element values of Multi-Prompts to increase efficency of hand entered data.
HOWTO
Applies To: ITScriptNet V1/V2

This sample illustrates how to us the Default Repsonse property of an Element to increase speed and efficiency of hand entered data by placing a commonly used value in the Element when it is displayed to the user. This allows the user to quickly acept 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 Element, such as an Element recording quantity information.

DETAILS

The Default Response property of an Element can be set one of two ways: First, a static value can be placed in the Default Response field of the Element'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 Element.

P1 PROMPT: QTY ELEMENT: 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 Element.

* The Default Script runs when the Element is initialized.
This article last updated: 1/1/2009 12:00:00 AM
Please help us improve the Knowledge Base by rating this article.
    © 1997-2026 Z-Space Technologies - a BCA Innovations Company - All rights reserved