Ext.PrimaryTableId()

Provides the TS_ID of a primary table for a specific application.

Function Signature

 int Ext.PrimaryTableId( applicationPrefixOrId )

Parameters

Parameter Type Description

applicationPrefixOrId

Variant

If applicationPrefixOrID is a non-numeric string, it is taken as the application's prefix, such as TTT. Because application prefixes do not need to be unique, the first table with the prefix encountered is returned. If applicationPrefixOrID is numeric, it is taken as the application's TS_ID.

Return

Type Description

int

Returns the TS_ID of the primary table for the specified application.

Technical Details

SBM ModScript version: 11.3.

Notes

For details on the TS_ID, refer to Identifying Records by TS_ID and Table ID.

For details on getting a table ID using its database name, refer to Ext.TableId().

Related Topics

Extension Functions