rptdesign from the Classic_Cars_BIRT_Reports
project. From the Palette, drag the Dynamic Text object over to the Report
Design pane, just below the Hello World label or the Text object from the
previous exercise.
2. The Expression Builder will pop up. You will notice that this looks really
different than the Edit Text Item Dialog from the previous exercise. The
Expression Builder is a Dialog that will be used a lot in BIRT. It is used to
edit small and short JavaScript expressions that will usually return single
data items. When we cover scripting more in depth, we will discuss the
differences between the Expression Editor and the Script Editor Pane used in
the Report Designer. Type in the following text: "Good-Bye World".
Visual Report Components
[ 62 ]
3. At the bottom of the Expression Editor, you will notice three different
list boxes. These are used as a quick reference for JavaScript objects and
methods that can be used in an expression. Put a period at the end of the
"Good-Bye World" text. Then, under the Category list box at the bottom of
the Expression Editor, choose Native Javascript Functions.
4. A whole list of items will appear under the Sub-Category list box. These are
types of objects and methods we can work with. Because "Good-Bye World"
is a text string, select the String item.
Pages:
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81