AxdBase.getName Method [AX 2012]

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

Syntax

public AifDocumentName getName()

Run On

Server

Return Value

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

Remarks

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

Examples

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

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

See Also

AxdBase Class

AxdSalesOrder Class