Creating/Editing a table scope
- The name of the scope. This is the class (or type) name of the view.
- The root is the entry point from where you can start to define a report template. If you leave the name empty, then the scope can only be used as a sub-scope of other scopes.
- The primary key of this table. (Optional)
- Whether this is a table that contains only a single row. Singletons are treated specially in ReportWeaver to simplify the report design process.
To specify the tables/views/queries that make up your scope, please use the Link Panel:
- This is the list of the tables in your database. Drag it from the list to the graphic pane on the right to add it to your scope. (Tables or related scopes that are not connected via a link will be removed from the scope on exit.
- This is the list of the scopes in your schema. Reference the other scope by dragging it onto the graphic pane.
- This is a scope element, which is based on a table, a view or a query.
- These are the links to the other elements of the scope.
- This is a link with cardinality one. This means, that there is one Customer related to an Invoice.
- This is a link with cardinality many. This means, that there are many OrderItems in an Invoice.
To create a link, drag the source scope element on to the target element.
- Dropping the OrderItems here (on the Products element) will create a link. Reportweaver will show the link-dialog, where you can specify the details of your link.
In the members tab you can select the columns, that you want to show in your scope. You can also specify the links to other scopes/tables/queries/views.
- The available columns in the table.
- The fields that you have chosen. They will be available in the report design.
- This adds the selected columns on the left to your scope on the right.
- Removes the selected fields on the right from the scope.
- Adds a special member, under which you can group the details of a master detail query.
- Adds a link to another scope (table/query/view). This allows you to access several joint tables in a report. Linking scopes
- Edits the properties of the selected link. Linking scopes
- Shortcut that adds all columns to the scope.
- Here a branch has been created. The
Invoices view of this example contains the data from the
Order and the
OrderDetails table. The branch specifies which fields come from the order details. For a simple first report this is not needed.