PickListAdd

Item Description

Use with:

Startup scripts, Terminal Launcher, Web, Windows

SecureLogin Version:

All

Type:

Action

Usage:

PickListAdd Display-Text [Return-Value]

Arguments:

Display-Text

[Return-Value]

The text that will be displayed in the pick list for the specified option.

The value returned from the pick list. If you don't specify this parameter, the return will be the display text.

Description:

Allows users who have multiple accounts for a particular system to choose the account that they will log in to. Also, you can use this command set to choose from multiple sessions on one mainframe account.

In fact, you can use PickList to build a list of databases, phone numbers, or any list you need your user to choose from. You can then set Variables or take action accordingly.

Always use PickListAdd with the PickListDisplay command. Also, you typically use PickListAdd with the SetPlat command.

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 to use, 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