Previous Topic: Possible UsesNext Topic: Log Off with PF3


Specify Initial Application from the Logo Panel

Some installations must allow users to choose the initial application when signing on at the Logo panel. To do this:

  1. Define a user variable on the Logo panel to contain the initial session ID. Alternatively, use the Account field and change the label on the panel definition.
  2. Define a TPXDEMO session as the first session on the Menu, and specify it as invisible. Set "Display Menu" to N for the user.
  3. Use the following ACL/E program as the signon program for TPXDEMO. It assumes that the "Account" field of the Logo panel is being used to contain the session ID.
             OPTION TERM,OFF              HIDE FROM USER
             COMPARE '&SNACCTV',' '       ANY APPL SELECTED?
             BRANCH EQ,EXIT               IF NOT, SHOW MENU
             COMMAND 'A &SNACCTV'         ACTIVATE IT IF NECESSARY
             WAIT 2                       LET IT COME UP
             COMMAND '&SNACCTV'           SWITCH TO IT
       EXIT  KEY 'END'                    END TPXDEMO
             ENTER
             WAIT 3                       GIVE IT TIME TO SWITCH
    

The final wait is coded to ensure that the session switch occurs before the ACL/E program ends, to prevent the TPXDEMO screen image from being sent to the terminal. It will not affect the timing of the process.