PickListDisplay

Item Description

Use with:

Startup scripts, Terminal Launcher, Web, and Windows

SecureLogin version:

All

Type:

Action

Usage:

PickListDisplay ?variable display-text [-noedit]

Arguments:

?variable

display-text

[-noedit]

The output variable for the selected option.

The description text for the pick list box.

Prevents the user from adding additional variables.

Description:

Displays the pick list entries built by previous calls to PickListAdd. The PickListDisplay command returns the result in a ?variable sent to the command.

If the desired entry is not among the displayed entries, users can enter their own data into an edit field at the bottom of the pick list. As the following line illustrates, you can turn off this feature by setting the noedit flag:

PickListDisplay ?result "Please pick your user" noedit

Syntax examples:

PickListDisplay ?Account
PickListDisplay ?Account "Please select the account you wish to use"
PickListDisplay ?Account "Please select the account you wish to use" -noedit

Example:

Dialog  
 Title "Login"
 Ctrl #1
EndDialog
PickListAdd "Account One" One
PickListAdd "Account Two" Two
PickListAdd "Account Three" Three
PickListDisplay ?Account "Please select the account you want to use" -noedit
SetPlat ?Account
Type $Username #1
Type $Password #2
Click #1