DictField.tableid Method [AX 2012]

Returns the ID of the table that contains the field.

public TableId tableid()

Run On

Called

Return Value

Type: TableId Extended Data Type
The ID of the table that contains the field.

The following example shows the retrieval of the table ID of a field.

DictField df; 
 
df = new DictField(tablenum(CustTable), fieldnum(CustTable, AccountNum)); 
 
if (df) 
{ 
    print df.tableid(); 
}

Community Additions

ADD
Show: