A table contains fields mapped to attributes, simple elements, contents of complex elements, and other nodes in XML files. Queries can be built on these tables and a report is developed from a query or something else which is functionally similar.
This document shows how to add more tables to an XML connection, organize the tables, etc.
To add tables which are transformed from an XML file to an XML connection, follow the steps below:
The Add Table dialog appears. See the dialog.
To choose consecutive tables, click the first table, press and hold down the SHIFT key, and then click the last table. To choose tables that are not consecutive, press and hold down CTRL, and then click each table.
The tables in your catalog are a temporary deposit to improve the performance when you design and test your report. Your data source keeps changing over the time. However, these will not be reflected automatically in your catalog. To synchronize your tables in the connection and data source, you can choose to refresh the table information using the Refresh command on the shortcut menu of the table. Then when the refreshing job is done, a reporting dialog will be shown, summarizing the changes and operations that have been taken.
You can organize the tables in an XML connection by arranging them in different folders in the Catalog Browser.
To add a folder:
To move tables to a folder:
By default, when you add a table, you add all the columns reside in the table. However, JReport gives you the flexibility to remove columns in a table, leaving only the columns useful to your reports. To remove a column from a table, right-click the column and select Delete from the shortcut menu.
Also, you can add the columns back to a table after you have removed them. To do this:
There will be no available column in the Columns box if you do not delete any in the table before. That is to say, you cannot add columns that do not belong to the table.
Tip: If you want to add all the columns in a table at a time, you can also choose to refresh the table, which synchronizes the table in catalog with the one in your database.