DictTable.indexName Method [AX 2012]

Returns the name of an index that is specified by the indexId parameter.

public str indexName(IndexId indexId, [DbBackend db])

Run On

Called

Parameters

indexId
Type: IndexId Extended Data Type
The one-based index for the index for which the name is being retrieved.
db
Type: DbBackend Enumeration
A DbBackend value that specifies the type of database back end; optional.

Return Value

Type: str
The name of the index that is specified by the indexId parameter.

The following example shows the retrieval of the names of the indexes for a table.

DictTable dt; 
int       i; 
 
dt = new DictTable(tablenum(CustTable)); 
if (dt) 
{ 
    for (i=1; i <= dt.indexCnt(); i++) 
    { 
        print (dt.indexName(i)); 
    } 
 
}

Community Additions

ADD
Show: