Sign-In Data

The user names and passwords that are used for sign-in are created as variables at the top of a script. The recorder also records a commented call to the GetLoginInfoPS function in the TInit transaction. The GetLoginInfoPS function retrieves values for the gsUserId and gsPassword variables from the LoginPS.csv file, which can be edited by double-clicking it in the Data Files section of the project tree view.

Customization of login data is done by uncommenting the recorded GetLoginInfoPS function call and populating the LoginPS.csv file with valid user accounts from your PeopleSoft application.

Example: Sign-in data created as variables

var
  gsUserId : string init "Admin";
  gsPassword : string init "Secret";
  // ...

  transaction TInit
    begin
    // ...
    PeopleSoftInit();
    //GetLoginInfoPS("LoginPS.csv", gsUserId, gsPassword);
    // ...
  end TInit;

  transaction TMain
  begin
  
  // ...
  
    SignInPS("login", LOGIN001, "EMPLOYEE"); // Form 1
  
  // ...

  end TMain;

dclform

  // ...

  LOGIN001:
    "httpPort"       := "" <USE_HTML_VAL> ,
                     // hidden, unchanged, value: ""
	"timezoneOffset" := "-120",
	                 // hidden, changed(!)
	"userid"         := gsUserId,
                     // changed, value: "Admin"
    "pwd"            := gsPassword,
                     // changed, value: "Secret"
    "Submit"         := "" <USE_HTML_VAL> ;
                     // unchanged, value: "Sign In"