AxInternalBase.emptyRecord Method [AX 2012]

Returns an empty record for the table that the AxBC class relates to.

Syntax

protected abstract Common emptyRecord()

Run On

Called

Return Value

Type: Common Table
An empty record from the table that the AxBC class relates to.

Remarks

In order to obtain a cleared record that is used when you initialize before inserting new records, the abstract emptyRecord method on the AxInternalBase class must be implemented.

The overriding methods must follow the following template:

// Replace TableName with the name of the class. 
protected TableName emptyRecord()  
{ 
    TableName localTableName; 
    return localTableName;  
}

See Also

AxInternalBase Class

AxInternalBase.emptyRecord Method