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
Configures the management of data for a SaaS site.
Remarks:
  • To use this function, a SaaS management session must have been started previously with SaaSAdminConnect.
  • Versions 16 and later
    The use of this function is reserved to the SaaS administrator. A manager of client accounts cannot use this function.
    New in version 16
    The use of this function is reserved to the SaaS administrator. A manager of client accounts cannot use this function.
    The use of this function is reserved to the SaaS administrator. A manager of client accounts cannot use this function.
Example
// Création d'un site SaaS avec une base de données pour chaque client
S is saasSite
CxSite is Connection
 
S.Name = "Forum"
 
IF SaaSAdminAddSite(S) = True THEN
CxSite.Server = "localhost"
CxSite.Provider = hAccessHFClientServer
CxSite.User = "admin"
CxSite.MotDePasse = "secret"
CxSite.Database = "BaseForum"
 
IF SaaSAdminConfigureSiteData(S, saasBaseClient, CxSite) = True THEN
Info("Le site a été créé et correctement configuré.")
END
END
Syntax
<Result> = SaaSAdminConfigureSiteData(<SaaS site> , <Management Mode of Data> [, <Connection parameters>])
<Result>: Boolean
  • True if the modification was performed,
  • False otherwise. To get the details of the error, use ErrorInfo.
<SaaS site>: saasSite variable or character string
Site (or name of site) for which the data management must be configured.
<Management Mode of Data>: Integer constant
Management mode of data, the possible values are:
saasBaseNoneThe site is not using any database.
saasBaseClientThe site is using a single database shared between all client accounts.
saasBaseCommonThe site is using a database for each client account. This database is created by duplicating a default database.
<Connection parameters>: Optional Connection variable
Depending on the management mode:
No database<Connection parameter> is not required; it will be ignored if it is specified.
Database for each client account<Connection Parameter> indicates the parameters for connecting to the default database.
Common database<Connection Parameter> indicates the parameters for connecting to the common database.
Remarks
If the site was already configured in a database management (example: a database per client), we advise you not to change this management mode. Indeed, the configuration of data is not retroactive. The clients who are already subscribers will keep their database. To modify the connection parameters retroactively, the data management must be modified for each client by SaaSAdminModifyClientConnection.
For a management mode with one database per client, the databases will be automatically created on the same server as the reference database. Their name will be built with the name of the site and the name of the client (for example: ECommerce_Hybrid). A user dedicated to the use of the database by the client will be created.
Component: wd270com.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment