PickListDisplay

Item Description

Use with:

Startup scripts, Terminal Launcher, Web, 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 users from adding entries to the pick list.

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. You can turn off this feature by setting the NoEdit flag.

Syntax Examples:

PickListDisplay ?Choice
PickListDisplay ?Choice "Select the account you want to use"
PickListDisplay ?Choice "Select the account you want to use" NoEdit

Example:
Windows Script
The user has three accounts for this application and wants to be able to pick which one to use. The user picks an account and SecureLogin (using the SetPlat command) switches to that set of credentials.

# Login Dialog Box 
Dialog
Title "Login"
Class #32770
EndDialog
PickListAdd "Account One" "One" 
PickListAdd "Account Two" "Two"
PickListAdd "Account Three" "Three"
PickListDisplay ?Account "Select the account to use" NoEdit
SetPlat ?Account
Type $Username #1001
Type $Password #1002
Click #1