RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDataSetProvider.OnGetTableName Event

Occurs when a resolver initializes its information about the table to which it applies updates.

Pascal
property OnGetTableName: TGetTableNameEvent;
C++
__property TGetTableNameEvent OnGetTableName;

Write an OnGetTableName event handler to enable the provider to apply updates to datasets where the resolver can't determine the target table from the provider's dataset. When the resolver component is initialized, it stores the name of the table that is the target of its updates. This table name can be used in generated SQL statements that apply the updates. When the dataset is a TTable, the resolver can use the table's TableName property. However, i If the dataset represents a multi-table query or stored procedure, the resolver has no way to determine the destination of the update without input from an OnGetTableName event handler. 

Return the name of the target table as the TableName parameter. The resolver uses this to apply updates. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!