Exposing the Properties of Report Bean Elements
Walkthrough
You will now expose certain properties of the report bean that you created in the previous example, Creating and Saving a Report Bean. This will allow report designers to customize these properties of the bean for the particular report in which they use the bean. For the text element, you will expose the text contents and the text alignment property. For the chart element you will expose the chart type and the legend position.
Continuing the previous example (with the bean open for editing in Style Studio), follow the steps below:
1. Select 'Bean Definition' from the Style Studio Report menu. This opens the 'Bean Definition' dialog box.

2. Expand the 'Text1' node in the 'Bean Elements' pane. Select 'Text' and click the right-arrow. This opens a dialog box that allows you to name the exposed property.
3. Enter “Title” as the name, and click 'OK'. This adds the 'Text' property to the 'Bean Properties' list with the alias “Title”.

4. Select the 'Alignment' property from beneath the 'Text1' node in the 'Bean Elements' pane.
5. Click the right-arrow, and label the exposed property “Justify”. Click 'OK'.
6. Expand the 'Chart1' node, select the 'ChartStyle' property, and click the right-arrow. Name the property “ChartType”.
7. Select the 'LegendPosition' property from beneath the 'Chart1' node in the 'Bean Elements' pane.
8. Click the right-arrow, and label the exposed property “Legend”. Click 'OK'.

9. Click 'OK' to close the 'Bean Definition' dialog box.
10. Click the 'Save' button in the Style Studio toolbar to save the bean.
11. Close the 'X' button in the bean tab, or press Ctrl-W on the keyboard.
This example continues in Using a Report Bean in a Report.
| << Creating and Saving a Report Bean | © 1996-2013 InetSoft Technology Corporation (v11.4) | Editing a Report Bean >> |