DictTable.name Method [AX 2012]

Retrieves the name of the table.

public str name([DbBackend db, boolean pseudoname])

Run On

Called

Parameters

db
Type: DbBackend Enumeration
A DbBackend system enumeration value that specifies the type of name to return; optional. This can be either DbBackend::Native for the native name of the table or DbBackend::Sql for the SQL name of the table. The default value is DbBackend::Native.
pseudoname
Type: boolean
A Boolean value that indicates whether a pseudo name is returned; optional.

Return Value

Type: str
The name of the table.

If the table name is longer than 30 characters, the native name and SQL name of the table do not match.

The following example shows the retrieval of the name of a table.

DictTable dt; 
 
dt = new DictTable(1);  // 1 == tablenum(CustTable) 
if (dt) 
{ 
    print(strfmt("The table name is %1.", dt.name())); 
}

Community Additions

ADD
Show: