|
|
|
|
|
- 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 = gpwOuvre("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 = gpwRecupInfoUtilisateur(gpwInfoFirstName)
Info("Bienvenue" + Prénom)
Remarks How to use the gpwOpen function? gpwOpen allows you to define the User Groupware startup mode. This enables 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 to use this function: in a multilingual application using user Groupware, the first window/page of the application lets you 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…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|