PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Adds a user into the database of user groupware.
Versions 22 and later
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
WINDEVLinux This function is now available for WINDEV applications in Linux.
WINDEVWindows This function is now available for WINDEV applications in Windows.
New in version 22
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
WINDEVLinux This function is now available for WINDEV applications in Linux.
WINDEVWindows This function is now available for WINDEV applications in Windows.
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
WINDEVLinux This function is now available for WINDEV applications in Linux.
WINDEVWindows This function is now available for WINDEV applications in Windows.
Versions 25 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
Android This function is now available for Android applications.
New in version 25
iPhone/iPad This function is now available for iPhone/iPad applications.
Android This function is now available for Android applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Android This function is now available for Android applications.
Example
// Valeurs du nouvel utilisateur
clUtilisateur is gpwUser
clUtilisateur.Email = SAI_Email
clUtilisateur.Login = SAI_Login
clUtilisateur.Password = SAI_MotPasse
clUtilisateur.LastName = SAI_Nom
clUtilisateur.FirstName = SAI_Prenom
clUtilisateur.PhoneNumber = SAI_Telephone
 
// Ajout de l'utilisateur
IF gpwAddUser(clUtilisateur) = False THEN
Info("Impossible d'ajouter l'utilisateur." + CR + ErrorInfo())
RETURN
END
 
// Activation de l'utilisateur
SWITCH gpwActivateUser(clUtilisateur.Login)
// Activation par email
CASE gpwActivationByEmail
PopupDisplay(POPUP_ValidationInscription)
// Activation immédiate
CASE gpwActivationImmédiate
// Connecte directement l'utilisateur
gpwConnectUser(clUtilisateur.Login, clUtilisateur.Password)
// Affiche la popup de confirmation
PopupDisplay(POPUP_ConfirmationInscription)
OTHER CASE
Info("Impossible d'activer l'utilisateur." + CR + HErrorInfo())
END
Syntax
<Result> = gpwAddUser(<User>)
<Result>: Boolean or Integer constant
WINDEVWEBDEV - Server code Corresponds to a Boolean:
  • True if the user was added,
  • False otherwise. To get the details of the error, use ErrorInfo with the errMessage constant.
Versions 25 and later
AndroidiPhone/iPad Corresponds to an Integer constant:
gpwOkThe user is immediately activated.
gpwActivationByEmailThe user is activated by email. An email is automatically sent (the characteristics of the email have been defined in the management page).
gpwErrorAddition error.
New in version 25
AndroidiPhone/iPad Corresponds to an Integer constant:
gpwOkThe user is immediately activated.
gpwActivationByEmailThe user is activated by email. An email is automatically sent (the characteristics of the email have been defined in the management page).
gpwErrorAddition error.
AndroidiPhone/iPad Corresponds to an Integer constant:
gpwOkThe user is immediately activated.
gpwActivationByEmailThe user is activated by email. An email is automatically sent (the characteristics of the email have been defined in the management page).
gpwErrorAddition error.
<User>: gpwUser variable
Name of gpwUser variable containing the information about the user to add.
Remarks
Depending on the validation mode of new users configured in the management page, the user validation can be performed immediately or it can be done by email. The gpwActivateUser function enables the added user.
Business / UI classification: Neutral code
Component: wd270gpu.dll
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment