Supporting Multilingual Data in Essbase Through Alias Tables Enabling Lexicographical Sorting

Configuring Currency Options 16-5 Figure 16–2 Static Currency Options in a Prompt

16.2.3 Defining User-Preferred Currency Options Using a Dynamic Mapping

You can use a mapping to define a dynamic list of options that users see for selecting currency. The list changes dynamically based on a logical SQL statement that you specify. This is useful, for example, to dynamically change the currency options based on the user. To define user-preferred currency options using a dynamic mapping: 1. Use a text editor to open the userpref_currencies.xml file that is located in the following directory: ORACLE_ INSTANCE\config\OracleBIPresentationServicesComponent\coreapplication_ obipsn 2. Add a UserCurrencyPreferences element as follows: UserCurrencyPreferences currencyTagMappingType=dynamic UserCurrencyPreferences 3. Add a UserPrefCurrencyLogicalSQL element between the UserCurrencyPreferences tags using this format: UserPrefCurrencyLogicalSQL SELECT column1, column2, column3 FROM userCurrencyPreference UserPrefCurrencyLogicalSQL In this format: ■ column1 contains the values that are used to set the session variable PREFERRED_CURRENCY. Each value in this column is a string that uniquely identifies the currency, for example, gc1. ■ column2 contains the currency tags in the currencies.xml file whose displayMessage values are to be used to populate the Currency box and currency prompts, for example, int:euro-1. The currencies.xml file, which is located in ORACLE_HOME\bifoundation\web\display, provides currency formats. ■ optional column3 contains the values used to set the presentation variable currency.userPreference. Each value in this column is a string that identifies the currency, such as Global Currency 2. Note: If you omit column3, then the values for the displayMessage attributes for the corresponding currency tags in the currencies.xml file are used. 16-6 System Administrators Guide for Oracle Business Intelligence Enterprise Edition For more information about the currency.userPreference variable, see Oracle Fusion Middleware Users Guide for Oracle Business Intelligence Enterprise Edition 4. Save and close the userpref_currencies.xml file. 5. Restart Oracle Business Intelligence. For information, see Section 4.1, About Starting and Stopping Oracle Business Intelligence.

16.2.4 Example: Dynamic Mapping to Define User-Preferred Currency Options

The following example shows a userpref_currencies.xml file that uses a dynamic mapping to define user-preferred currency options: UserCurrencyPreferences currencyTagMappingType=dynamic UserPrefCurrencyLogicalSQL -- In this SELECT statement, column1 contains the values to set the PREFERRED_ CURRENCY variable, column2 contains the currency tag values, and column3 contains the values to set the currency.userPreference variable. -- SELECT markets.userpreferences, markets.currencyTag, markets.userpreferencename FROM userCurrencyPreference UserPrefCurrencyLogicalSQL UserCurrencyPreferences Table 16–1 shows sample results from the logical SQL statement. Figure 16–3 shows how the values that are generated dynamically from the SQL statement in the userpref_currencies.xml file are displayed in a drop-down list of currency options for the Currency box on the Preferences tab of the My Account dialog. The drop-down list is similar to what is displayed for a prompt on a dashboard page. Table 16–1 Sample Logical SQL Results Markets.UserPreference Markets.CurrencyTag Markets.UserPreferenceName varchar varchar varchar orgc1 loc:en-BZ Org currency gc2 int:euro-1 Global currency 2 lc1 int:DEM Ledger currency gc1 int:USD Global Currency 1