3.10.3 Report Bean Example

Report Header Bean

Total Field Bean

This example (bean.srt in the examples/docExamples/script directory) is based on the table example. It changes two parts of the report into report beans:

Note: Set your Repository location to examples/docExamples/script. See Configuring and Selecting a Repository in Getting Started for instructions.

The report header section is converted into a bean, and the script for calculating the date range is contained in the bean. This allows the bean to be reused across multiple reports without re-implementing the script.

The table label and field are changed to a bean. The bean is used to create a total over 1,000 and a total under 1,000.

Figure 3. Report Bean Example (bean.srt)

 

<< Accessing Bean Properties from Parent Report © 1996-2013 InetSoft Technology Corporation (v11.4) Report Header Bean >>