Navigating iReport Activity

 

 

 

Step

Action

1. 

Note: Many of iReport's most powerful features are accessible from the main menu:

 

- Select Preview to specify the application with which to preview a report

- Select Tools > Options to add files to the Classpath, configure the viewer applications to preview your reports, or specify export options

- Select the Window menu to make visible any of the panels or palettes

2. 

Begin by clicking the Window menu to view the names of iReport panels.

3. 

Note: The menu shows a list of the panels and palettes available in iReport.

4. 

Beneath the Window menu is the data source drop-down window. At its immediate left is the Report Datasources button. To specify a report's data source, either click the button to add a new one, or click the drop-down list and select an existing data source.

 

Click the Report Datasources button to investigate the connections window.

5. 

Note: The Connections / Datasources window appears. This window allows you to add, modify, delete or select a data source.

6. 

Click the Close button to close this window.

7. 

Now, open a sample report.

In the main menu, click Help > Samples > Basic Report.

8. 

Note: The report template opens. It contains a title near the top and several smaller text fields represented by the $F{ } syntax.

9. 

Next, display the Report Inspector panel.

From the main menu, click Window > Report Inspector.

10. 

Note: The Report Inspector panel appears next to the report, and the Report Inspector is populated with report elements. The Report Inspector lets you view how elements are distributed in a report. Ask your instructor if you need help displaying the Report Inspector panel alongside the report.

11. 

Note: In the Report Inspector you can:

- Right-click the top node (named for the report) to access configuration features

- Select any report element to view and edit its properties

- Move elements from one part of the report to another

12. 

Note: Just above the report template, the designer tool bar provides many useful tabs and buttons to manage report lifecycle processes:

 

- Designer tab: Returns to design view so you can edit the report

- XML tab: Displays the JRXML source markup

- Preview tab: Executes the report query against the selected data source and generates a preview of the report

- Report Query: Allows you to write/edit a SQL query

- Zoom In/Out: Provides a closer or more distant view of the report

- Compile: Turns the JRXML source into a compiled .jasper file

13. 

Next, open the Report Elements palette.

 

Click the Window menu.

14. 

Click the Palette menu item.

15. 

Note: The Report Elements palette appears, typically at the right of the report. Chart, image, text, frame, and geometric shapes are available here. Drag any element from the palette into the design window to add that element to a report.

16. 

Next, open the Properties panel.

 

Click the Window menu.

17. 

Click the Properties menu item.

18. 

Note: The Properties panel appears, typically alongside or underneath the Report Inspector. When you select a report element in either the Report Inspector or the design window, you can view and edit the report element properties here.

19. 

In the Report Inspector, expand the Detail 1 node.

20. 

Click to select the $F{ORDERID} node.

21. 

Note: You edit the field's properties in the Properties panel.

22. 

Note: When a report element is selected in the Report Inspector, it is also highlighted in the report by a light-brown selection rectangle.

23. 

Note: The Design Window (or Design Area) is the center panel in which the report displays, and serves as the workspace in which you add and delete report elements and modify the report layout.

24. 

Next, open the Formatting Tools panel.

 

Click the Window menu.

25. 

Click the Formatting Tools menu item.

26. 

Note: The Formatting Tools panel appears, usually at the right of the report, alongside or underneath the Palette. In this panel, specify an element's length, width, location, and vertical and horizontal alignment.

27. 

Now, open the Repository Navigator.

 

Click the Window menu.

28. 

Click the JasperReports Server Repository menu item.

29. 

Note: The Repository Navigator panel appears. The Repository Navigator (also called the JasperReports Server Plugin) facilitates your remote interaction with the JasperReports Server repository from within iReport. The Repository is not yet configured; this is done in a later activity.

30. 

Next, open the Report Problems Window.

 

Click the Window menu.

31. 

Click the Report Problems menu item.

32. 

Note: The Report Problems Window appears, usually near the bottom of iReport. Check the Report Problems Window for messages that may help you identify a problem or error when your report does not view properly.

33. 

Finally, open the Styles Library panel.

 

Click the Window menu.

34. 

Click the Styles Library menu item.

35. 

Note: The Styles Library panel appears. This panel offers easy access to default styles and your custom styles.

36. 

Congratulations!

 

You successfully navigated the iReport interface and panels.

 

View the Online Learning Portal here (http://www.jaspersoft.com/online-learning-portal).

End of Procedure.