|
|
|
|
- How to use gpwOpen?
- Pre-launched sessions
gpwOpen (Function) In french: gpwOuvre
Not available
 Not available with these kinds of connection
Opens the User Groupware login window or page. Remark: This function is required only if the User Groupware was integrated with the "Manual run" option. If the option "Automatic start" has been selected, this function is ignored.
// Opens the User Groupware login window nRes is int = gpwOpen("c:\GpwUser") // If the login failed IF nRes <> gpwOk THEN SWITCH nRes CASE gpwCancel: Info("The Cancel button was clicked.") CASE gpwError: Error("Error while initializing the groupware.") CASE gpwUnknownUser: Error("Unknown user.") CASE gpwInvalidPassword: Error("Invalid password") END EndProgram() END // Retrieve the user's first name FirstName is string = gpwGetUserInfo(gpwInfoFirstName) Info("Welcome" + FirstName)
Remarks How to use gpwOpen? gpwOpen allows you to define the User Groupware startup mode. This allows you to perform other actions before opening the User Groupware login window or page: execute code, open windows or pages, etc. Usage example of this function: in a multilingual application that uses the User Groupware, the first window or page of the application is used to choose the runtime language. When creating the application, you must: - choose not to automatically run the User Groupware during its integration
- open the window or page for language selection as first application window, then call the login window or page with gpwOpen.
Pre-launched sessions If your project uses pre-launched sessions, this function must not be used in the project initialization event. This function must be used in the "Initializing the project after connection to the site" event. Business / UI classification: Neutral code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|