|
|
|
|
|
- How to use the gpwOpen function?
- 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 start" option. If the option "Automatic start" has been selected, this function is ignored.
nRes is int = gpwOpen("c:\GpwUser")
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
FirstName is string = gpwGetUserInfo(gpwInfoFirstName)
Info("Welcome" + FirstName)
Remarks How to use the gpwOpen function? 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 start the User Groupware when it is integrated
- 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 "Initialization in pre-launched session mode" event. Business / UI classification: Neutral code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|