> Task 3: | Build a data source

> Before you begin designing your report in the layout editor, you build a BIRT data source to connect your report to a database or other types of data sources. When you build a data source, you specify the driver class, data source name, and other connection information that is specific to the type of data source. For this tutorial, you use the sample database, Classic Models, that is already configured for use with BIRT Report Designer. You do not need to specify the connection information for this sample database.

> 1 | Choose Data Explorer. If you use the default report design perspective, Data Explorer is to the left of the layout editor, next to Palette, as shown in Figure 1‑8. If Data Explorer is not open, choose Window->Show View->Data Explorer.

> Figure 1-8 | Data Explorer

> 2 | Right-click Data Sources, then choose New Data Source from the context menu. New Data Source displays the types of data sources you can create, as shown in Figure 1‑9.

> Figure 1-9 | New Data Source

> 3 | Select Classic Models Inc. Sample Database from the list of data source types. Use the default data source name, then choose Next. Connection information about the new data source appears.

> 4 | Choose Finish. BIRT Report Designer creates a new data source that connects to the sample database. It appears within Data Sources in Data Explorer, shown in Figure 1‑10.

> Figure 1-10 | Data Sources in Data Explorer

(c) Copyright Actuate Corporation 2008