The next screenshot shows the BIRT Script Editor overriding an event for a Table
object. You will notice the drop-down box displays the event method onPrepare that
is being overridden. Next to it is a button labeled Reset Method, which will delete all
code in the Editor and bring the event handler back to a default state. And next to it
is a label Table, which indicates the name of the element that we are setting an event
handler for.
It is important to note from experience that again, the Outline provides an invaluable
tool for script editing in that it allows a developer to ensure that they are developing
an event handler for the correct component. Too often with report development in
BIRT, a developer will select the wrong component using the Layout Editor. Also,
because the Layout Editor is not visible when the Script Editor is open, the Outline
provides a convenient mechanism to switch between elements.
The BIRT Environment and Your First Report
[ 44 ]
For those who are gluttons for punishment, you can view the actual XML Source for
a report page. Personally I rarely ever use the XML Source viewer, except to copy
report source code when helping individuals in the BIRT newsgroup.
Finally, there is the report Preview tab. This is a convenient way to preview how a
report will look, without having to have the application launch a separate window
with the report viewer.
Pages:
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67