Searching for resources

When there are too many resources in a catalog, sometimes you may find that it is difficult to locate where a resource is from the Catalog Browser. JReport provides you with a searching function which enables you to easily find the required resources.

To search resources in a catalog:

  1. Open the catalog where you want to search resources.
  2. In the Catalog Browser, click the Search button on the toolbar to display the Search dialog. See the dialog.
  3. Provide a search condition in the Search Expression text field. Use "*" to stand for any string, and use "?" to stand for any character.

    Note: JReport can only search resources in the leaf node of the catalog resource tree.

  4. Select the Case Sensitive checkbox if you want JReport to distinguish between uppercase and lowercase characters when searching.
  5. Specify the search scope by selecting the radio button Selected Resources or Search In.
  6. Click Search to search for the resource you want.

    All the matched results 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. Select a search result from the Search Result panel, the resource node that contains it will be expanded and with that resource highlighted in the Catalog Browser.

For example, if you want to find the DBField Customer Name in the Queries node, first select the node in the Catalog Browser, click , then in the Search dialog, input Customer Name in the Search Expression field, check the scope as Selected Resource and click the Search button. The results will then be displayed in the Search Result panel. You can click any of the results to highlight it in the catalog resource tree.