Dataset

  • Last update:May 12, 2023
  • Overview

    Version

    FineReport VersionFunction Changes
    11.0/
    11.0.4Data set preview interface supported copying.

    Function Introduction

    Dataset means that taking data out of the database, which means data display collection that can be directly applied to template design.

    Note: The name of the dataset cannot contain the English punctuation "."

    Data Set Classification

    Server Dataset

    The server data set corresponds to the entire report project. If you change a template or create a new workbook, you can still use the data in the server dataset.

    Click Menu>Server>Server Dataset, the Server Dataset interface will pop up, and all the defined server dataset information is stored in the fine_conf_entity table of FineDB.

    Click +, the server dataset can extract data from DB Query, Class, Embedded, File, Stored Procedure, Realtion, Tree, as shown in the figure below:

    1.png


    Template Dataset

    The template dataset corresponds to the current template and is saved in the cpt file of this template. It cannot be shared with other templates and is private.

    Click Template> Template Dataset, the following interface will appear:

    2.png

    Drag and drop the table to the statement input area to quickly create SQL query statements, as shown in the following figure:

    3.gif


    Dataset Type

    According to the data source, the dataset types are divided into: Database query, Built-in dataset, File dataset, SAP data set, Stored procedure, Multidimensional database,  Relation dataset and Tree dataset.

    Dataset type
    Definition
    Database queryFor database tables in the data source, directly use SQL statements to select the required data fields.
    Built-in datasetCreate a new table similar to a database table, which can be used as a template data source to design reports.
    File datasetIt refers to the dataset in TXT text files, Excel files and XML files, and displayed in the dataset in the structure of a two-dimensional table.
    SAP datasetFirstly establish a SAP data connection, through the data connection to establish the SAP data set.
    Stored procedureStored procedure is to directly use the stored procedure as a dataset, without querying in the database but to call the stored procedure
    Multidimensional databaseOn the basis of XMLA data connection, create a new multidimensional database XMLA dataset.
    Relation datasetFilter and fetch data from different data sources; access different databases; use different data sources to form a dataset.
    Tree datasetBind the tree dataset to the widget, and the tree hierarchical structure will be automatically generated when viewed on the Web side.

    Data Set Window

    In the dataset pane on the left side of the designer, all the added datasets will be displayed, including the template dataset and the server dataset, as shown in the following figure:

    Note: The dataset window can add, delete, edit, and preview the template dataset, but can only preview the server dataset and stored procedure dataset.

    4.png

    1. The user can preview the dataset in the dataset window and when adding the dataset, as shown in the figure below:

    5.png

    2. In the preview interface, the user can directly use the mouse to frame selection, or use the shift key to select multiple cells. Then use control+c (ios:command+c) to copy the data in the preview interface. As shown below:

    6.gif

    3. Select the header and drag it to move the column position; click the header cell to sort the column. As shown below:

    7.gif

    Index

    No.
    ContentsIntroductionDocument Tutorial
    1Database queryFor database tables in the data source, directly use SQL statements to select the required data fields.Database query
    2Built-in datasetCreate a new original table similar to a database table, which can be used as a template data source to design reports. Built-in dataset
    3File datasetIt refers to the dataset in the TXT text file, Excel file and XML file, and displayed in the dataset in the structure of a two-dimensional table. 

    1)Text dataset:It means that the data source is a series of TXT text files.TXT dataset

    2)Excel dataset: It refers to the data source is a series of XLS files Excel data setExcel dataset

    3)Remote Excel dataset:It access the JSP page through URL, and use the corresponding Excel file as the dataset. 

    4)XML dataset:It refers to the data source is a series of XML files.XML dataset
    4SAP datasetFirstly establish a SAP data connection, and establish the SAP dataset through the data connection.

    1)Custom access: It call ABAP Function directly to get data.

    2)
    Simple general query access:It read certain columns from a table through the open SQL statement, and list some conditions that the data needs to meet. 

    3)General query access: Compared with simple general query, general query increases the ability to associate between tables and supports multi-table query.

    4)

    Functions in general query access: A detailed description of the creation process of EXTRACT_TABLE_DATA and problem solving


    5Stored procedureStored procedure is to directly use the stored procedure as a dataset, without querying in the database but to call the stored procedure.Stored procedure
    6Multidimensional databaseOn the basis of XMLA data connection, create a new multidimensional database XMLA dataset.

    1)Simple general query:It refers to the direct display of the multidimensional CUBE structure after FineReport connects to the multidimensional database through XMLA. 

    2)Custom MDX query:It refers to the user directly enters the MDX query statement in the MDX statement input box, and FineReport uses the statement to access the multidimensional database to obtain the data.
    7Relation DatasetFilter and fetch data from different data sources; access different databases; use different data sources to form a dataset. Relation dataset
    8Tree DatasetBind the tree dataset to the widget, and the tree hierarchical structure will be automatically generated when viewed on the Web side. Tree dataset



     


    Attachment List


    Theme: Data Preparation
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy