Db4o Integration

We will use a separate module to maintain a database connection and perform db4o operations: Db4o Manager.

The following function will add several Pilot objects to the database:

Report's data source can accept a single object (Textbox control) or a list of objects (Table, List, Chart etc.). In this example we use a table, so a list of objects is needed:

This function will return a list of pilot object IDs. Please, note, that the actual objects will be instantiated only as they are being retrieved from the list, which means that db4o connection should be kept open while the report is being created.