ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / SaaS functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
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.
  • 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> , <Data management mode> [, <Connection parameters>])
<Result>: Boolean
  • True if the modification was performed,
  • False otherwise. To get more details on the error, use ErrorInfo.
<SaaS site>: saasSite variable or character string
Site (or name of site) for which the data management must be configured.
<Data management mode>: Integer constant
Management mode of data, the possible values are:
saasBaseClientThe site uses a single database shared between all client accounts.
saasBaseCommonThe site uses a database for each client account. This database is created by duplicating a default database.
saasBaseNoneThe site is not using any 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 has already been configured with a base management system (e.g. one base per customer), it is not advisable to change this management system. 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 from the site name and the customer name (for example: ECommerce_Hybrid). A user dedicated to the use of the database by the client will be created.
Component: wd300com.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help