How web reporting tools use the data dictionary

Description: frequently used numbers in the database represents the name, display corresponds to the number of names in the report, the most simple way is to form numbers and names mapped to do with the dictionary. The course of "Order Details" table, for example, the "product" table as a dictionary, explain how to display the data dictionary in the report.

The first step: Adding a Data Source

Click on the data source , the data in the edit box set: "select * from Order Details" to add a data source "ds1".

Click on the data source , the data in the edit box set: "select * from products", add a data source "ds2".

Step two: Make a worksheet

The data set "ds1" data source all fit into the worksheet, is added above the frame data in the corresponding register cell, set the cell center text, and add borders.

 

When you preview the report, the "product" is digitally display, do not show this name.

Step 3: Set the data dictionary

Select the "product" data cells in the attribute bar "data cells", check "data dictionary", "dictionary source" Select "DS2", "Mapping column" select "product ID", "display column" select " product name".

 In the lower right is provided the use of the dictionary data cells red triangle.

Step Four: FIG preview

Click on the toolbar again , preview renderings. All this time "product ID" are displayed become corresponding product name.

Step 5: Save Template

Save the template, the template named "data dictionary."

 

Published 39 original articles · won praise 1 · views 10000 +

Guess you like

Origin blog.csdn.net/efreport/article/details/90632696