Using Multiple Currencies in Java Script Code

The View.user.userCurrency object exposes the current user currency properties:

code

symbol

The View.project.budgetCurrency object exposes the Budget Currency properties:

code

symbol

The View.project.currencies array contains all supported currencies loaded from the Archibus Currencies table. Each array element contains the code and symbol properties.

To find a supported currency symbol by currency code:

var symbol = View.project.currencies.currencySymbolFor('USD');

To find a supported currency code by currency symbol:

var code = View.project.currencies.currencyCodeFor('$');