ExpressionCurrencyDefaultProvider.getExchangeRateType Method [AX 2012]

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

Syntax

protected ExchangeRateTypeRecId getExchangeRateType(CLRObject expressionFieldLHS, Common recordBuffer)

Run On

Called

Parameters

  • expressionFieldLHS
    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 exchange rate type.

Return Value

Type: ExchangeRateTypeRecId Extended Data Type
The exchange rate type.

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