|
|
|
|
|
- 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. Note This function is only required if User Groupware has been integrated with the "Manual launch" option. If the option "Automatic start" has been selected, this function is ignored.
nRes is int = gpwOpen("c:\GpwUtilisateur")
IF nRes <> gpwOk THEN
SWITCH nRes
CASE gpwCancel : Info("Vous avez cliqué sur le bouton Annuler.")
CASE gpwError : Error("Erreur à l'initialisation du groupware.")
CASE gpwUnknownUser : Error("Utilisateur inconnu.")
CASE gpwInvalidPassword : Error("Mot de passe invalide.")
END
EndProgram()
END
Prénom is string = gpwGetUserInfo(gpwInfoFirstName)
Info("Bienvenue" + Prénom)
Remarks How to use the gpwOpen function? gpwOpen allows you to define the User Groupware startup mode. This allows you to perform a number of actions before launching the User Groupware connection window or page: execute code, launch windows or pages, etc. An example of how this function can be used: in a multilingual application using User Groupware, the first window/page of the application lets you choose the language in which the application will run. 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…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|