ODBC data source in Stimulsoft reports
For items that are in the database but not included in the report, you can add a data source to provide that information to the report template.
There are several things to consider when adding data sources:
- It is always best to make these kinds of design changes in a new user-defined report. See Create user-defined reports for customizing.
- If the item that you are adding is universally used, you should send a development request to include the field in the default data source for the report.
- It is important for the organization of the report to use a consistent naming pattern when adding items. Observing the methods already in use is a good starting point.
- Due to the amount of data in the source, it may be necessary to apply a filter to the source.
- There needs to be a way to link the source data to provide the proper
relationship so that the correct data is provided for the record or summary
being displayed. This may require that multiple tables are added.
For example, if you want to include the job status description, you may need to add both the “projects” table to get the “jobstatusid” for the project and the “jobstatuses” to be able to link the “jobstatusid” to the correct description.
Add an OBDC data source
Add tables to the ODBC data source
The selected tables are available in the navigation tree under the ODBC[ODBC] source.
Add relation to the detail data band source
The name of the relation is now available in the Child data source and the records are linked based on the fields set in the relation.
Have the relation populated with the data from the added source
The data that has been added and related to the data source for the report is available.