Using a Report Bean in a Report

Walkthrough

You will now insert the bean you created earlier into a report. This example continues from Exposing the Properties of Report Bean Elements.

1. Click the 'New' button in the Style Studio toolbar. This opens the 'New Asset' dialog box.

2. In the left panel, select 'Report'. In the right 'Type' panel, select 'Blank Tabular Report' and click 'OK'. This opens a new report for editing.

3. Click the 'Bean' component in the 'Special' region of the Toolbox panel. This opens the 'Open a Report Bean' dialog box.

4. Select “chartbean” and click 'OK'. This places the bean into the report. (The bean contains a Text element and a Chart element.)

 

5. Double-click anywhere on the inserted bean. This opens the 'Bean Properties' dialog, which lists the bean's exposed properties. (See Exposing the Properties of Report Bean Elements.)

 

6. Make the following modifications:

a. From the 'ChartType' menu, select '3D Bar'.

b. From the 'Justify' menu, select 'Right Center'.

c. From the 'Legend' menu, select 'Left'.

d. In the 'Title' field, type “A 3D Bar Chart”.

7. Click 'OK'. Observe the changes to the report bean.

 

8. Save the report.

If you close the report and then reopen it, you will observe that the property modifications that you made have been saved with the report. These properties are no longer referenced from the bean definition, so changes to the bean definition do not affect these properties. All other properties of the bean (i.e., those that were not exposed) are referenced from the original bean definition.

By default, elements that you insert following the bean will appear on a new line. To permit these elements to appear on the same line as the bean, open the Report Element panel, and deselect the 'LineAfter' option from the Properties tab.

 

<< Editing a Report Bean © 1996-2013 InetSoft Technology Corporation (v11.5) 5.11.2 Subreport >>