Creating and Saving a Report Bean
To create a report bean, follow the steps below:
1. Click the 'New' button in the Style Studio toolbar. This opens the 'New Asset' dialog box.
2. Click the 'Component' node in the left panel.
3. In the right 'Type' panel, select 'Report Bean' and click 'OK'.
This create a new blank bean to which you can add report elements. The icon in the tab indicates that this asset is a bean, rather than a report.

Note that the 'Deploy' toolbar option is disabled, because a bean cannot be deployed independently. It can only be used within a report.
Walkthrough
In this example, you will create a composite component (bean) that consists of a text element and a chart. In order to allow report designers to customize the bean for the particular report in which they use it, you will expose certain bean properties for modification. In this case, you will expose the contents and alignment of the text element, and the chart type and legend position for the chart element.
Follow the steps below:
1. Click the 'New' button in the Style Studio toolbar. This opens the 'New Asset' dialog box.
2. Click the 'Component' node in the left panel.
3. In the right 'Type' panel, select 'Report Bean' and click 'OK'. This creates a new report bean.

4. Click the 'Text' button in the Toolbox panel to insert a text element into the bean.
5. Enter the following text as the contents of the Text element: “A Bar Chart”.
6. Use the toolbar buttons to change the text alignment to 'horizontal center', and increase the font size to 14 point.

7. Click below the Text element to place the insertion point after the text element. Clicking the 'Chart' button in the Toolbox panel to add a chart.

8. Click the chart to select it. This opens the Data Source and Binding panels.
9. On the Data Source panel, expand the 'Orders' data source and the 'All Sales' query.
10. From the Data Source panel, drag the 'Employee' field to the 'X' region of the Binding panel.
11. From the Data Source panel, drag the 'Total' field to the 'Y' region of the Binding panel.
12. From the Data Source panel, drag the 'Company' field to the 'Color' region of the Binding panel.

13. Right-click the chart, and select 'Condition' from the context menu. This opens the 'Conditions' dialog box.
14. In the 'Conditions' dialog box, enter the following condition:
[Company][is][one of][Eastern Data,Ernst Handel,FISGA Corp]

15. Click 'OK' to close the 'Conditions' dialog box.

16. Click the 'Save' button on the Style Studio toolbar. This opens the 'Save As' dialog box.
17. Enter the name “chartbean,” and type a description (if desired).

18. Click 'OK' to save the bean in the bean library.
This example continues in Exposing the Properties of Report Bean Elements.
| << 5.11.1 Report Bean | © 1996-2013 InetSoft Technology Corporation (v11.5) | Exposing the Properties of Report Bean Elements >> |