Moving Oracle Adaptive Access Manager to a New Production Environment

19-2 Oracle Fusion Middleware Developers Guide for Oracle Adaptive Access Manager LEFT OUTER JOIN SELECT enumElement.num_value, enumElement.label FROM v_b_enum enum INNER JOIN v_b_enum_elmnt enumElement ON on enum.enum_id = enum_ element.enum_id WHERE enum.prop_name = enum name alias ON table.type_field = alias.num_value … In this code, table.type_field is the field containing a type code value that you want to replace with a string. Alias is the name you are giving the inner select clause. Finally, enum_name is the property name of the User Defined Enum. To display in the report, you need to add alias.label to the select clause.

19.1.2.3 Internationalized User Defined Enum Result Display

The following SQL code shows how to add the join criteria to the query: SELECT … FROM … LEFT OUTER JOIN SELECT t0.config_value, element.num_value FROM v_b_config_rb t0 INNER JOIN SELECT enum_element.num_value, enum_element.str_value, enum.prop_name FROM v_b_enum enum INNER JOIN v_b_enum_elmnt enum_element ON enum.enum_id = enum_ element.enum_id WHERE enum.prop_name = enum name element ON t0.config_name=element.prop_name || . || element.str_value || .name WHERE t0.locale_id = SELECT locale_id FROM v_b_locale WHERE language = substr:xdo_user_ui_locale, 1, 2 AND country = substr:xdo_user_ui_locale, 4, 2 AND substr:xdo_user_ui_locale, 1, 2 in de, en, es, fr, it, ja, ko OR substr:xdo_user_ui_locale, 1, 2 = pt AND substr:xdo_user_ui_locale, 4, 2 = BR OR substr:xdo_user_ui_locale, 1, 2 = zh AND substr:xdo_user_ui_locale, 4, 2 IN CN, TW UNION SELECT locale_id FROM v_b_locale WHERE language = substr:xdo_user_ui_locale, 1, 2 AND NOT EXISTSSELECT locale_id FROM v_b_locale WHERE language = substr:xdo_user_ui_locale, 1, 2 AND country = substr:xdo_user_ui_locale, 4, 2 AND country IS NULL AND substr:xdo_user_ui_locale, 1, 2 in de, en, es, fr, it, ja, ko OR substr:xdo_user_ui_locale, 1, 2 = pt AND substr:xdo_user_ui_locale, 4, 2 = BR OR substr:xdo_user_ui_locale, 1, 2 = zh AND substr:xdo_user_ui_locale, 4, 2 IN CN, TW UNION SELECT locale_id FROM v_b_locale WHERE language = en AND NOT substr:xdo_user_ui_locale, 1, 2 in de, en, es, fr, it, ja, ko OR substr:xdo_user_ui_locale, 1, 2 = pt AND substr:xdo_user_ui_locale, 4, 2 = BR OR substr:xdo_user_ui_locale, 1, 2 = zh AND Creating OAAM Oracle BI Publisher Reports 19-3 substr:xdo_user_ui_locale, 4, 2 IN CN, TW ORDER BY t0.config_name alias ON table.type_field = alias.num_value … In this code, table.type_field is the field containing a type code value that you want to replace with a string. Alias is the name you want to give the inner select clause. Finally, enum_name is the property name of the User Defined Enum. To display in the report, you need to add alias.config_value to the select clause.

19.1.3 Adding Lists of Values

Add parameters to your report definition to enable your users to interact with the report and specify the data of interest from the data set. To allow a user to select from a list of readable strings representing type codes, the report writer will need to create a List of Values LOV from a query on the User Defined Enums tables, filtered by the enum name.

19.1.3.1 User Defined Enums as List of Values for Filtering, English Only

The following listing shows how to write the query to populate the list of values. SELECT enumElement.label, enumElement.num_value FROM v_b_enum enum INNER JOIN v_b_enum_elmnt enumElement ON on enum.enum_id = enumElement.enum_ id WHERE enum.prop_name = enum name ORDER BY enumElement.label The following listing shows how to filter the report based on this LOV. WHERE … AND :parameter IS NULL OR :parameter = table.type_field In these listings, enum_name is the property name of the User Defined Enum, table.type_field is the field containing a type code value that you want to replace with a string, and parameter is the named parameter. Review the Oracle BI Publisher Users Guide for information about creating and setting up report parameters.

19.1.3.2 User Defined Enums as List of Values for Filtering, Internalized

The following listing shows how to write the query to populate the list of values. SELECT t0.config_value, element.num_value FROM v_b_config_rb t0 INNER JOIN SELECT enum_element.num_value, enum_element.str_value, enum.prop_name FROM v_b_enum enum INNER JOIN v_b_enum_elmnt enum_element ON enum.enum_id = enum_ element.enum_id WHERE enum.prop_name = enum name element ON t0.config_name=element.prop_name || . || element.str_value || .name WHERE t0.locale_id = SELECT locale_id FROM v_b_locale WHERE language = substr:xdo_user_ui_locale, 1, 2 AND country = substr:xdo_user_ui_locale, 4, 2 AND substr:xdo_user_ui_locale, 1, 2 in de, en, es, fr, it, ja, ko OR substr:xdo_user_ui_locale, 1, 2 = pt AND substr:xdo_