SBM ModScript Reference → Programming SBM ModScript → Object Types → AppRecord → AppRecord GetName() Method
Gets the calling AppRecord's "Name" system field.
| Parameter | Type | Description |
|---|---|---|
|
None |
| Type | Description |
|---|---|
|
string |
A text string from the associated Name field. |
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 name = "";
if(myRecord.ReadWithWhere(whereClause)) {
/*On the contact record, this will return back
the contact's full name */
name = myRecord.GetName();
}
For more details on the Name system field, refer to Working with SBM Database Records.
Copyright © 2007–2020 Micro Focus or one of its affiliates. All rights reserved.