Resource View panel
The Resource View panel, which can be displayed by clicking View > Resource View on the menu bar, is an integrated interface for managing the resources that are used in the current report. It consists of a toolbar, a dataset drop-down list, and a field panel as shown below:
Toolbar
The toolbar includes the following buttons:
- Views
This button varies with the view you select. It provides a shortcut menu for you to switch among the view modes (Query View, Dataset View, and Dataset List View). The Query View mode lists all available resources for the current report. The Dataset View mode also lists all these resources, however with a checkbox left to every resource for you to select (for a dataset coming from a hierarchical data source, there are no such checkboxes). The Dataset List View mode lists the resources you have selected in the dataset view mode.
- Dataset Filter
Filters out some unnecessary data.
- Search Resource
Searches the required resources in the Resource View panel. See the topic below for details.
- Edit
This button is for editing the selected object if it is a query, formula, summary or parameter. According to what you have selected, clicking this button will bring out different dialogs.
- Properties
Opens the Properties dialog of the selected object. You can edit the properties as desired.
- Link with Editor
If this check button is selected, the Dataset drop-down list will show the dataset bound to the currently selected object; or else the drop-down list will always show the dataset you have selected from the drop-down list, until you select another one.
Dataset drop-down list
This drop-down list is available for page report only. It lists all the datasets used in the current report. The first item <Choose Data from...> provides access to creating a dataset.
Fields panel
This panel lists all available resources for the current report in a tree structure. The DBFields, formulas, summaries, and parameters in this panel respond to right-clicking events, and thus provide you with shortcuts for viewing and editing their properties, editing formulas/summaries/parameters, creating new formulas/summaries/parameters, and operating queries.
Searching for resources in the Resource View panel
You can search the resources you want in the Resource View panel as shown below:
- Click on the Resource View toolbar to display the Search dialog. See the dialog.
- Provide a search condition in the Search Expression text box. Use "*" to stand for any string, and use "?" to stand for any character.
- Select the Case Sensitive checkbox if you want JReport to distinguish between uppercase and lowercase characters when searching.
- Specify the search scope by selecting the radio button Selected Resources or Search In.
- Selected Resources: If you have selected a resource in the resource tree, when you bring out the Search in Resource Viewer dialog, this radio button will be selected and JReport will search for the resources from the selected resource.
- Search In: If it is selected, JReport will search for the resource from the Resource View panel.
- Click the Search button to search for the resource you want.
The result will be listed in the Search Result panel which has three columns: Resource Name, Resource Type and Resource Path. You can sort the search result alphabetically by clicking the column headers. When you select a search result from the Search Result panel, the resource node that contains it will be expanded with that resource highlighted in the Resource View panel.