ExpressionCurrencyDefaultProvider.getCurrencyCode Method [AX 2012]

Gets the currency code that is associated with a specified field by using a specified record buffer.

Syntax

protected CurrencyCode getCurrencyCode(CLRObject expressionField, Common recordBuffer)

Run On

Called

Parameters

  • expressionField
    Type: CLRObject Class
    The field that corresponds to either the LHS or RHS of a condition.
  • recordBuffer
    Type: Common Table
    The record buffer that is used to retrieve the currency code.

Return Value

Type: CurrencyCode Extended Data Type
The currency code.

Remarks

If an explicit association to a currency code (using metadata or attributes) has not been declared by the user, then the SaveDataPerCompany property of the table is checked to see whether it is striped by an LE. A table is striped by an LE if either the SaveDataPerCompany property is set to Yes, in which case the dataAreaId value represents the company information, or if the SaveDataPerCompany property is set to No but a table relation to the CompanyInfo table exists.

If the table is striped by the LE, then the currency code is retrieved from the primary ledger for this LE.

See Also

Reference

ExpressionCurrencyDefaultProvider Class