FineReport connection example and operation of multidimensional database

1. Description

When FineReport connects to a multidimensional database, it is first necessary to connect the multidimensional database to FineReport through a data connection, and then create a new multidimensional database XMLA dataset based on the data connection for template design.

2. XMLA data connection

2.1 Description

Multi Dimensional Database (MDD), as the name suggests, refers to storing data in multiple dimensions. In short, it stores data in an n-dimensional array, rather than storing it in the form of records like a relational database. . So it has a lot of sparse matrices and people can look at the data through a multidimensional view. Multidimensional database adds a time dimension. Compared with relational database, its advantage is that it can improve data processing speed, speed up response time, and improve query efficiency.

2.2 Operation steps

FineReport provides XMLA data connection method to connect with multi-dimensional database and build a bridge. Through this bridge, FineReport can easily obtain data in multi-dimensional database and convert it into two-dimensional table for template making and data analysis.

2.2.1 Install the cube plug-in, or import the relevant jar package

Designer plug-in installation method refer to: Plug-in installation management

For the method of installing plug-ins on the server, please refer to: Installing plug-ins on the server

Click to restart the designer, and the designer will restart automatically later. After restarting, the plugin will be enabled successfully, and an XMLA data connection will appear in the data connection, as shown in the following figure.

 

Note: Only versions before 8.0 need to import the following jar package

2.2.2 Create a new data connection

Open the designer, click Server > Define Data Connection, enter the Define Data Connection dialog box, click the + button to add an XMLA data connection, as shown below:

 

2.2.3 Data connection parameter configuration

FineReport multi-dimensional database XMLA data connection supports the mainstream database types such as SQL Server Analysis Services, Oracle Essbase, SAP HANA and SAP BW in the market. Let us explain the connection methods of each type of multi-dimensional database one by one.
(1) SQL Server Analysis Services

SQL Server Analysis Services, or SSAS for short, refers to the design, creation, and management of multidimensional structures that contain detailed and aggregated data from multiple data sources, such as relational databases, within a single unified logical model with built-in computing support.

Select SQL Server Analysis Services for the database type on the XMLA data connection parameter configuration interface, enter the site address, user name and password of the database in the URL, and then click the drop-down option behind the database tab, FineReport will automatically load all multidimensional databases under the site Displayed in the drop-down list, select the database to be connected, as shown below:

 

Note: The XMLA URL above connects to a site published directly through IIS.

Click Test Connection to indicate that the connection is successful.
(2) Oracle Essbase

Select Oracle Essbase for the database type, enter the site address, user name and password of the database in the URL, then click the drop-down option behind the database tab, FineReport will automatically load all multidimensional databases under the site and display it in the drop-down list, select the need to connect database, as shown below:

 

Click Test Connection to indicate that the connection is successful.

Note: In the case of simple general query, filter on the selected dimension, does not support "include", "exclude", "begins with", filter on non-selected dimensions, only support "equal to"

Another: When it comes to complex filtering forms, you can use custom MDX queries
(3) SAP HANA

Select SAP HANA for database type, enter the site address, user name and password of the database in the URL, and then click the drop-down option behind the database tab, FineReport will automatically load all multidimensional databases under the site and display it in the drop-down list, select the need to connect database, as shown below:

 

Click Test Connection to indicate that the connection is successful.

 

详细设置查看:SAP HANA 连接
(4)SAP BW
数据库类型选择SAP BW,在URL输入该数据库所在站点地址,用户名及密码,然后点击数据库标签后面的下拉选项,FineReport会自动将该站点下面的所有多维数据库加载显示在下拉列表中,选中需要连接的数据库即可,如下图:

点击测试连接即表示连接成功。

 

详细设置查看:SAP BW连接

XMLA数据连接建立好之后,就可以添加多维数据库XMLA数据集。

 

3. XMLA数据集

新建好XMLA数据连接之后,在模板数据集面板中点击添加按钮,新建一个多维数据库,如下图:

 

进入多维数据库XMLA数据集配置界面,XMLA数据集查询取数方式包括简单通用查询和自定义MDX查询两种,如下图:

 

 

原文摘自CSDN:http://blog.csdn.net/yuanziok/article/details/72146753

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326211576&siteId=291194637