Ext.TableDatabaseName( tableDispNameOrId )

Description

Returns the database name of the specified table, such as "TS_INCIDENTS." Note that SQL statements must use the database name, not the display name.

Argument

tableDispNameOrId

Use this argument to specify a table's display name in order to return the table's database name. If tableDispNameOrId is a non-numeric string, it is taken as the table's display name, such as "Incidents." Otherwise, the parameter is converted to a number and taken as the table's ID.

Return Values

Returns the database name of the table if the display name exists. If not, an empty string is returned.

Related Topics