Fieldpine Logo Documentation Home  
POS Commands Home

The input command prompts the user for a simple value. It is designed for quick prototyping and data capture, it is not a fully comprehensive data capture screen.

Commnd Overview

input(Options)

prompt(XYZ)
Sets the prompt to be displayed to the user
password
Sets input the "password capture" mode, which typically means the input data is not shown to the user
required
Sets that the user must enter something, and they will be reprompted until they do.
store(X,Y)
variable(X)
verify(X)
list(X,Y,Z)
posc(X)
Processes the PosComand X after data capture. See an example below
initial(X)
Preloads the entry box with the value X
type(yesno)
Displays a Yes/No message screen rather than an input field. If a yesno method is used, the other options are disabled and the return value is returned to PosScript.

Examples

Prompts the user for a name, but then does nothing with the input value. The value "Susan" is preloaded

	input(prompt(Name) initial(Susan))

	or using variables in PosScript
	set uname = String(Susan)
	input(prompt(Name) initial(%uname%))

Captures a transit number from the user and then sends this value to the command executor. The %PARAM% is replaced with whatever value the user entered

	input(prompt(Transit Number) posc( maint(transit(resend(%PARAM%))) ))

Confirm with user that they really wish to perform some operation

	set x = posc(input(prompt(Really do this?) type(yesno)))
	if x = TRUE
	then
		... do something ...
	endif