In this tutorial, you learn how to assign multiple database connections in a grid, and how to populate a grid with data from multiple database connections with formulas.
Approximately 30 minutes.
In Oracle® Hyperion Financial Reporting Studio, Fusion Edition (Reporting Studio), when you add a grid to a report, you specify its database connection. You can also populate the grid with data from muliple database connections. After defining the grid's initial database connection, dimension layout, and members, you can change the database connection of data rows or data columns to retrieve data from a different database connection.
When you change the database connection of data rows or data columns, the dimension names for the new database connections may be different from the grid's initial database connection. You maintain the integrity of the data structure by mapping the dimensions from the initial database connection to the new database connection. If the structure of the new database connection differs from that of the grid's initial database connection, the report cannot repopulate.
Limitations for multiple database connections in a grid:
In a grid, you can also retrieve data from multiple database connections with formulas. You add multiple grids to a report, where each grid retrieves data from a different database connection. In one grid, you can then display data from another grid with formulas.
In Reporting Studio, you add a grid in the report to retrieve data from a database connection. You add data rows and data columns to the grid. You also add rows to the grid that retrieve data from a different database connection. The multiple database connections in the grid must be of the same type and should have a similar structure.
To demonstrate a better way to retrieve data from multiple database connections in a grid, you add a second grid to the report. The second grid retrieves data from a different database connection. In the first grid, you then reference the data from the second grid with formulas. You use text functions to display the correct member names for the formulas, and you hide the display of the second grid in the report.
Note: Given the limitations of multiple database connections within one grid, the second solution with multiple grids is recommended.
Before starting this tutorial, you should:
In Reporting Studio, you add a grid in the report to retrieve data from a database connection. You add data rows and data columns to the grid. You also add rows to the grid that retrieve data from a different database connection.
Limitations for multiple database connections in a grid:
To populate a grid with data from multiple database connections, perform the following steps:
. |
In Reporting Studio, create a report and insert a grid. In this example, you select the Essbase database connection, Sample:Basic, add the Product dimension to the rows, and the Market dimension to the columns.
|
||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
. |
For the Market dimension in column A, select East and West.
|
||||||||||||||||
. |
For the Product dimension in row 1, select the 100, 200, 300, and 400 members.
|
||||||||||||||||
. |
Grid1 displays the member selections.
|
||||||||||||||||
. |
Select Grid1. In the General category of the Grid Properties sheet, verify that the database connection is Sample:Basic.
|
||||||||||||||||
. |
At the bottom of the grid, add a text row and a data row. In this example, row 5 is a text row and row 6 is a data row. By default, row 6 retrieves data from the Sample:Basic database connection.
|
||||||||||||||||
. |
Select row 6, and on the Row 6 Properties sheet, click Select Database Connection to change the database connection of row 6.
|
||||||||||||||||
. |
In the Select a Database Connection dialog box, select a different database connection for row 6. In this example, you select the Essbase database connection Demo:Basic.
|
||||||||||||||||
. |
Dimensions with the same name in both database connections are mapped automatically. You must map the dimensions that have different names. In this example, all of the dimensions between Sample:Basic and Demo:Basic are mapped automatically except for the Measures dimension. Map the Measures dimension from Sample:Basic to the Accounts dimension from Demo:Basic. You do not map dimensions that are in the Point of View.
|
||||||||||||||||
. |
In the Row 6 Properties sheet, verify that Demo:Basic is the database connection.
|
||||||||||||||||
. |
For the Product dimension in row 6, open the Select Members dialog box. Verify that the available members are from the Demo:Basic database connection, and select the Audio and Visual members.
|
||||||||||||||||
. |
In Grid1, the first 4 rows are members from the Sample:Basic database connection, and the last 2 rows are members from the Demo:Basic database connection.
|
||||||||||||||||
. |
In the user POV bar, set the Point of View for the database connections. For Sample:Basic, select the following user POV members:
For Demo:Basic, select the following user POV members:
|
||||||||||||||||
. |
Preview the report. The report retrieves 4 data rows from Sample:Basic and 2 data rows from Demo:Basic.
|
To demonstrate a better way to retrieve data from multiple database connections in a grid, you add a second grid to the report. The second grid retrieves data from a different database connection. In the first grid, you reference the data from the second grid with formulas. You use text functions to display the correct member names for the formulas, and you hide the display of the second grid in the report.
To populate a grid with data from another grid by using formulas, perform the following steps:
. |
In Grid1, delete rows 6 and 7.
|
---|---|
. |
Insert a second grid in the report to retrieve data from a different database connection. In this example, you select the Demo:Basic database connection.
|
. |
For Grid2, place the Product dimension in the rows and the Market dimension in the columns.
|
. |
In the columns of Grid2, select the East and West members. In the rows, select the Audio and Visual members.
|
. |
Select Grid2. In the General category of the Grid Properties sheet, verify that the database connection is Demo:Basic.
|
. |
Return to Grid1. At the bottom of the grid, add two formula rows.
|
. |
In rows 6 and 7, add formulas to retrieve data from the Demo:Basic database connection in Grid2. In row 6, enter the formula Grid2.row[1] to retrieve the data from row 1 of Grid2.
|
. |
In rows 6 and 7, add text functions to retrieve the member names. Select the heading for row 6. On the Heading Row Properties sheet, select Custom Heading. In the Custom Heading box, enter the MemberName function to retrieve the member name from row 1 of Grid2. The function syntax is <<MemberName("Grid2", 1, "Product")>>. The dimension name must be spelled exactly as it is in the database. Repeat this step for row 7 to retrieve the member name from row 2 of Grid2. The function syntax is <<MemberName("Grid2", 2, "Product")>>.
|
. |
To hide Grid2 from the report display, select Grid2, and in the Suppression category of the Grid Properties sheet, select Hide Grid.
|
. |
Preview the report. In the first 4 rows, the report displays data from the Sample:Basic database connection. In the last 2 rows, the report displays data from the Demo:Basic database connection.
|
In this tutorial, you should have learned how to:
About Oracle | Oracle and Sun | | Subscribe | Careers | Contact Us | Site Maps | Legal Notices | Terms of Use | Your Privacy Rights | |