O'Reilly logo

BIRT: A Field Guide to Reporting by Nola Hague, Alethea Hannemann, Diana Peh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 14. Writing Expressions

You can create many reports using data that comes directly from a data source simply by dragging the data set fields from Data Explorer to the report. Sometimes, however, you want to display information that is not in the data source, or you want to display data differently than it appears in the data source. You might also want to sort data using a formula, rather than sorting on an existing field. For these cases, and many others, you write expressions using JavaScript.

An expression is a statement that produces a value. An expression can be a literal value, such as

   3.14
   "It is easy to create reports with BIRT"

When you drag a field into the report, BIRT Report Designer creates the expression for you. The expression ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required