AppRecord GetName() Method

Gets the calling AppRecord's "Name" system field.

Function Signature

 string GetName()

Parameters

Parameter Type Description

None

Return

Type Description

string

A text string from the associated Name field.

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 name = "";
if(myRecord.ReadWithWhere(whereClause)) {
	/*On the contact record, this will return back
		the contact's full name */
	name = myRecord.GetName();
}

Notes

For more details on the Name system field, refer to Working with SBM Database Records.

Related Topics

AppRecord