DictTable.formRef Method [AX 2012]

Returns the name of the default form for the table.

public str formRef([boolean searchBaseTables])

Run On

Called

Parameters

searchBaseTables
Type: boolean

Return Value

Type: str
The name of the default form for the table.

If the AOT shows no value for the FormRef property of a table, the name of the default form for the table is considered to be the same as the name of the table. In this case, this method does not return an empty string.

The following example shows the retrieval of the default form for a table.

DictTable dt; 
 
dt = new DictTable(tablenum(CustTable)); 
if (dt) 
{ 
    print strfmt("Default form: %1", dt.formRef()); 
}

Community Additions

ADD
Show: