![]() ![]() ![]() |
Used in a CFGRID, CFGRIDUPDATE allows you to perform updates to data sources directly from edited grid data. CFGRIDUPDATE provides a direct interface with your data source.
CFGRIDUPDATE first applies DELETE row actions followed by INSERT row actions and finally UPDATE row actions. Row processing stops if any errors are encountered.
<CFGRIDUPDATE GRID="gridname" DATASOURCE="data source name" DBTYPE="type" DBSERVER="dbms" DBNAME="database name" TABLENAME="table name" USERNAME="data source username" PASSWORD="data source password" TABLEOWNER="table owner" TABLEQUALIFIER="qualifier" PROVIDER="COMProvider" PROVIDERDSN="datasource" KEYONLY="Yes/No">
Required. The name of the CFGRID form element that is the source for the update action.
Required. The name of the data source for the update action.
Optional. The database driver type:
Optional. For native database drivers, specifies the name of the database server machine. If specified, DBSERVER overrides the server specified in the data source.
Optional. The database name (Sybase System 11 driver only). If specified, DBNAME overrides the default database specified in the data source.
Required. The name of the table you want to update. Note the following:
Optional. If specified, USERNAME overrides the username value specified in the ODBC setup.
Optional. If specified, PASSWORD overrides the password value specified in the ODBC setup.
Optional. For data sources that support table ownership (such as SQL Server, Oracle, and Sybase SQL Anywhere), use this field to specify the owner of the table.
Optional. For data sources that support table qualifiers, use this field to specify the qualifier for the table. The purpose of table qualifiers varies across drivers. For SQL Server and Oracle, the qualifier refers to the name of the database that contains the table. For the Intersolv dBase driver, the qualifier refers to the directory where the DBF files are located.
Optional. COM provider (OLE-DB only).
Optional. Data source name for the COM provider (OLE-DB only).
Optional. Yes or No. Yes specifies that in the update action, the WHERE criteria is confined to just the key values. No specifies that in addition to the key values, the original values of any changed fields are included in the WHERE criteria. Default is Yes.
![]() ![]() ![]() |
AllaireDoc@allaire.com
Copyright © 1998, Allaire Corporation. All rights reserved.