Creating Logical Lookup Columns

16-2 System Administrators Guide for Oracle Business Intelligence Enterprise Edition

4. In the Treat Numbers As box, select Currency.

5. In the Currency Symbol list, select the symbol.

6. Complete the other options on the tab as appropriate. 7. If desired, save this setting as a systemwide default.

8. Click OK when you have finished, and repeat the preceding steps for any other

columns to change.

16.2 Defining User-Preferred Currency Options

Users can select the currency in which they prefer to view currency columns in analyses and dashboards in two ways: ■ In the Currency box on the My Account dialog: Preferences tab ■ In currency prompts Figure 16–1 Example of the Currency Box on the My Account Dialog: Preferences Tab For information about setting the currency preference on the My Account dialog: Preferences tab or about currency prompts, see Oracle Fusion Middleware Users Guide for Oracle Business Intelligence Enterprise Edition. You define the currency options that are to be displayed in the Currency box and in a currency prompt in the userpref_currencies.xml file. These currency options must be for currencies to which your installation can convert columns. Defining the currency options also controls whether the Currency box is available on the My Account dialog: Preferences tab and whether the Currency Prompt option is available on the Definition pane of the Prompt editor. When you define these currency options, you can use one of two types of mappings: ■ Static — Produces a static list of currency options that all users see. ■ Dynamic — Produces a list of currency options that changes dynamically based on a logical SQL statement that you specify. This is useful, for example, to dynamically change the currency options so that each user sees a list specific to his or her account. Each user sees a subset of the total options available. For example, one group of users might want to select from only Global Currency 1 or Global Currency 2 while another group might want to select from different options. Configuring Currency Options 16-3

16.2.1 Defining User-Preferred Currency Options Using a Static Mapping

You can use a mapping to define a static list of options that all users see for selecting currency. To define the user-preferred currency options using a static mapping: 1. Use a text editor to open the userpref_currencies.xml file located in the following directory: ORACLE_ INSTANCE\config\OracleBIPresentationServicesComponent\coreapplication_ obipsn

2. Add a UserCurrencyPreferences element as follows:

UserCurrencyPreferences currencyTagMappingType=static UserCurrencyPreferences

3. For each currency option to be displayed in the Currency box or in currency

prompts, add a UserCurrencyPreference element between the UserCurrencyPreferences tags using this format: UserCurrencyPreference sessionVarValue=sessionVarValuevalue displayMessage=displayMessagevalue displayText=displayTextvalue currencyTag=currencyTagvalue In this format: ■ sessionVarValue=sessionVarValue sets the session variable PREFERRED_ CURRENCY. For its value, specify a string that uniquely identifies the currency, for example, gc1. ■ optional displayMessage=displayMessagevalue sets the presentation variable currency.userPreference to a localized value. To specify a localized value, you first must create the localized message for the currency in the usercurrencymessages.xml file. For information, see Section 15.2.1.2, Localizing Messages for Users Preferred Currency. Then, for the value of displayMessage, specify the WebMessage name that is identified in the usercurrencymessages.xml file for the currency. For example, if you created this English language entry in the usercurrencymessages.xml file: Note: For the user-preferred currency options to take effect, the following configuration also must be done in the Oracle Business Intelligence repository: ■ Creation of the PREFERRED_CURRENCY session variable ■ Conversion setup of logical currency columns in the Business Model and Mapping layer ■ Creation of the userCurrencyPreference table using the currency information from your installation that enables you to dynamically change the currency options based on a logical SQL statement that you specify required only if you use a dynamic mapping For information, see Configuring Logical Columns for Multicurrency Support in Oracle Fusion Middleware Metadata Repository Builders Guide for Oracle Business Intelligence Enterprise Edition.