AppRecord GetId() Method

Retrieves the current AppRecord's TS_ID.

Function Signature

 int GetId()

Parameters

Parameter Type Description

None

Return

Type Description

int

TS_ID of the calling AppRecord.

Technical Details

SBM ModScript version: 11.3.

Example

//Create a Contact record
var tableId = Ext.TableId ("TS_CONTACTS");
var myRecord = Ext.CreateAppRecord(tableId);
var whereClause = "TS_CONTACTFIRSTNAME like 'Joe'";
var ContactTSID; 
if(myRecord.ReadWithWhere(whereClause)) {
	//Read the TS_ID of the record
	ContactTSID = myRecord.GetId();
}

Notes

Note that TS_ID is uninitialized on a newly-created object. This method will only return a meaningful result if the calling object has been read from or written to the database.

Related Topics

AppRecord