BackPrevious Page Next PageNext

Previewing a Query

To preview a query, follow the steps below:

  1. In the Query Editor, click Preview. The Preview Option dialog appears.

    Preview Option dialog

  2. In the Max Records text box, specify the maximum number of records to be displayed.
  3. In the Records per Page text box, specify the number of records displayed on one page.
  4. In the Range box, specify the range of the records for previewing.

  5. Click OK. If the query has parameters, you will be prompted to enter the parameter values.

    The Preview dialog appears showing the records. In the dialog, JTable is used to display the result set. When you open the dialog, the result set is cached, and when you close the dialog, the result set is released.

    Preview dialog

  6. Click First Page button, Previous Page button, Next Page button and Last Page button to browse the records. If the type of the result set is TYPE_FORWARD_ONLY, the last page button will be disabled until you have browsed the last page.
  7. To refetch the result set, click Refetch. Click Stop to stop JReport from refetching the result set.
  8. To print the result set, click Print . If you want to preview the result set before printing, click Print Preview.
  9. If you want to set up the page parameters, click Page Setup.
  10. Click the close button of the dialog to close the Preview dialog.

Notes:

BackPrevious Page Next PageNext