DictTable.titleField2 Method [AX 2012]

Returns the ID of the field that represents the titleField2 property of the table.

public FieldId titleField2([boolean includeBaseTables, boolean extendedFieldId])

Run On

Called

Parameters

includeBaseTables
Type: boolean
extendedFieldId
Type: boolean

Return Value

Type: FieldId Extended Data Type
The ID of the field that represents the titleField2 property of the table.

According to best practice guidelines, the titleField2 property represents the description of the records of the table.

The following example shows the retrieval of the ID of the field that is used for the titleField2 property of the table.

DictTable dt; 
DictField df; 
 
dt = new DictTable(tablenum(CustTable)); 
 
if (dt) 
{ 
    df = new DictField(tablenum(CustTable),dt.titleField2()); 
    if (df) 
    { 
        print df.name(); 
    } 
}

Community Additions

ADD
Show: