AxdBase.getName Method [AX 2012]

Returns a fixed string that contains the name of the document.

public AifDocumentName getName()

Run On

Server

Return Value

Type: AifDocumentName Extended Data Type
The name of the document.

The getName method is implemented on AxdBase Class. It returns the class name, stripped for Axd, of the document class that called the method.

The following example shows how to get the name of AxdSalesOrder.

    AxdBase         axdBase =        
  AxdBase::newClassId(classNum(AxdSalesOrder)); 
    AifDocumentName salesOrderName; 
 
    salesOrderName = axdBase.getName();

Community Additions

ADD
Show: