PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Returns the connection to the database of a client account for a SaaS site.
Notes:
  • To use this function, a SaaS management session must have been started beforehand by SaaSAdminConnect.
  • Versions 16 and later
    The SaaS Administrator will have access to all connections. A client account manager will only have access to the connection regarding his own client account.
    New in version 16
    The SaaS Administrator will have access to all connections. A client account manager will only have access to the connection regarding his own client account.
    The SaaS Administrator will have access to all connections. A client account manager will only have access to the connection regarding his own client account.
Example
// Open a connection to the database of the "Jet Tames" client for the "CRM" site
ASaaSSite is SaaSSite
ASaaSClient is SaaSClient
AClientDatabase is Connection

ASaaSSite = SaaSAdminFindSite("CRM")
ASaaSClient = SaaSAdminFindClient("Jet Tames")
AClientDatabase = SaaSAdminClientConnection(ASaaSSite, ASaaSClient)

HOpenConnection(AClientDatabase)
Syntax

Retrieving the connection parameters (via saasxxx variables) Hide the details

<Result> = SaaSAdminClientConnection(<SaaS Site> , <Client Account>)
<Result>: Character string or Connection variable
Parameters for connecting to the database of client account.
<SaaS Site>: saasSite variable
Name of saasSite variable corresponding to the SaaS site whose connection parameters will be retrieved.
<Client Account>: saasClient variable
Name of saasClient variable corresponding to the SaaS client account whose connection parameters will be retrieved.

Retrieving the connection parameters Hide the details

<Result> = SaaSAdminClientConnection(<Site> , <SaaS Client>)
<Result>: Character string or Connection variable
Parameters for connecting to the database of client account.
<Site>: Character string (with quotes)
Name of SaaS site whose connection parameters will be retrieved.
<SaaS Client>: Character string (with quotes)
Name of SaaS client account whose connection parameters will be retrieved.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230com.dll
Linux wd230com.so
Minimum required version
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment