DictTable.deleteActionTableId Method [AX 2012]

Returns the table ID of a table's delete action that is specified by an index.

public TableId deleteActionTableId(int cnt)

Run On

Called

Parameters

cnt
Type: int
A one-based index to the list of the delete actions for the table. The list is in AOT order.

Return Value

Type: TableId Extended Data Type
The table ID of the table's delete action that is specified by cnt; 0 (zero) if the cnt value does not represent a valid delete action index.

The following example shows the use of the deleteActionTableId method to retrieve the names of tables that have delete actions for the CustTable table.

DictTable dt, dt2; 
int       i; 
 
dt = new DictTable(tablenum(CustTable)); 
if (dt) 
{ 
    for (i=1; i <= dt.deleteActionCnt(); i++) 
    { 
        dt2 = new DictTable(dt.deleteActionTableId(i)); 
        if (dt2) 
        { 
            print dt2.name(); 
        } 
    } 
}

Community Additions

ADD
Show: