SBM ModScript Reference → Programming SBM ModScript → Object Types → AppRecord → AppRecord GetId() Method
Retrieves the current AppRecord's TS_ID.
Parameter | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
int |
TS_ID of the calling AppRecord. |
SBM ModScript version: 11.3.
//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(); }
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.
Copyright © 2007–2019 Micro Focus or one of its affiliates. All rights reserved.