ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / Properties associated with reports and controls
  • What is a query performed on a connection?
  • Properties used to manage reports based on data files accessed via an ODBC driver or a Native Connector
  • Limit
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
ODBCConnectionName (Property)
In french: ODBCNomConnexion
ODBCNative Connectors (Native Accesses)Available only with these kinds of connection

What is a query performed on a connection?

A query performed on a connection is a query performed on data files handled via a specific ODBC driver or a Native Connector.

When creating the connection, you have the ability to define:
  • the connection name
  • the name of the data source
  • the username and password
  • the name of the database accessed (if there is more than one).
The report editor allows you to print the data coming from a query performed on a connection. All the parameters of the connection to use can be defined in the report editor or through programming with the WLanguage properties.
The ODBCConnectionName property is used to:
  • Find out the name of the ODBC connection used when printing a report based on a "query performed on a connection".
  • Specify the name of the ODBC connection used when printing a report based on a "query performed on a connection".
Remark: This property must be used in the report opening code.
Example
// -- Code d'ouverture de l'état
ETAT_Etat1.ODBCNomConnexion = "MaConnexion"
ETAT_Etat1.ODBCCodeSQL = "Select * from Produits"
ETAT_Etat1.ODBCNomUtilisateur = "DUPUIS"
ETAT_Etat1.ODBCMotDePasse = "PSW"
Syntax

Identifying the name of the connection used when printing a report based on a "query performed on a connection" Hide the details

<Result> = <Report used>.ODBCConnectionName
<Result>: Character string
Name of connection used when printing a report based on a query performed on a connection.
<Report used>: Report name
Name of the report to be used.

Specifying the name of the connection to use when printing a report based on a "query performed on a connection" Hide the details

<Report used>.ODBCConnectionName = <Connection to use>
<Report used>: Report name
Name of the report to be used.
<Connection to use>: Character string
Name of the connection used to perform the base query of the report via the ODBC driver or a Native Connector. This connection name must be defined in the administrator of the driver or Native Connector used on the current computer.
Remarks

Properties used to manage reports based on data files accessed via an ODBC driver or a Native Connector

The following properties are used to manage reports based on data files accessed via an ODBC driver or a Native Connector:
ODBCConnectionNameUsed to identify and change the name of the connection used to handle a database accessed via an ODBC driver or a Native Connector.
ODBCDatabaseNameUsed to identify and change the name of the database used by the query executed on a database accessed via an ODBC driver or a Native Connector.
ODBCPasswordUsed to identify and change the password associated with the user allowed to access a database via an ODBC driver or a Native Connector.
ODBCSQLCodeUsed to identify and change the SQL code of the query executed on a database accessed via an ODBC driver or a Native Connector.
ODBCUserNameUsed to identify and change the name of the user allowed to access a database via an ODBC driver or a Native Connector.

Limit

The ODBCConnectionName property applies only to the reports based on a "query performed on a connection".
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help