Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Adding data to a BIRT report that is generated by Weave is done in the same manner as data from any other data source that BIRT supports, but you need to choose the "Cohga Weave Oda Data Source" driver when creating a new data source, which is done by right clicking on the Data Source item in the Outline panel in the BIRT designer and selecting New Data Source.
From the next screen you need to enter the URL of a Weave server that is currently running and will be serving the data that you wish to include in the report.

The URL entered here is only used during report design, since when the report is actually being generated it's being generated within the Weave server itself and therefore knows how to connect.

...

Once you click Finish you will have a new data source connection available for retrieving data from a Weave server

Creating a Data Set

The next step is to create a Data Set, which represents a Weave data definition that can be included in the report design.

...

When you hit next you will get a page listing the entities and data definitions available on the server, and here you choose what data you want to retrieve.

Here you can see the list of available entities in the left column and the list of all available data definition at the bottom of the middle column.

If you select one of the entities in the left column the list at the top of the middle column will populate with the list of data's that are associated with that entity.

Note

The error at the top of the Data Set form indicates that we must choose a Data or Data Definition now that we've selected an entity

Now we need to select the Data or Data Definition that will be the actual source of the data we wish to display.

Once we've done this the Finish button is enabled again so we can complete the creation of the data definition.

...

Once you click Finish you will progress to the standard BIRT data set editing wizard


thisĀ 

this is where you can edit the properties for the data set and do things like filter the data, create new values based on data retrieved.

Note

One useful thing you can do in the data set edit page is set the maximum number of rows the report will generate which is done in the Setting tab.
This will give you the opportunity to ensure that the user can't generate the report for 1,000,000,000 records or setup the report for a single entity.

Info

The _id column represents the key column for the underlying data definition and is used to uniquely identify each entity.
This value will be used later when we look at filtering and embedding maps in data sets.

Once you click Ok here it'll complete the Data Set creation

Using a Data Set

The quickest way to then get the data from a data set into the report design is to simply drag and drop the data set into the report design.
This will create a new Table in the report design which represents the data set.

Image Added

From here you can delete the columns you don't want to appear in the report

Image Added

Note

You probably don't want the _id column to appear, but you shouldn't delete it but just hide it.
Click on the column header for the _id column and change to the visibility tab in the properties, there you can click the Hide check box to hide it

Image Added

Then if we save and generate this updated report we'll see the data for the currently selected entities

Image Added

Info

The map component in the report design was hidden in the design