CRYSTAL REPORTING
Introduction
Seagate Crystal Reports provide a powerful reporting tool that has been closely
integrated into T24 Browser to enable enhanced presentation and organisation of data
provided from the T24 System. It may be used to provide reports from enquiries and
delivery messages, on-line and during the Close of Business.
In order to create new Crystal Reports and edit the design of existing Crystal Reports,
a copy of Seagate Crystal Reports must be installed on the client PC. However,
users who only need to run pre-existing Crystal Reports do not need to have a Seagate
Crystal Reports licence.
Crystal Reports can be launched through execution of the command
RPT <REPORTNAME>.
This can be entered on the command line, added to the user abbreviation toolbar,
added to the user menu or incorporated into context-based workflow in the same way
as current T24 Enquiries.
Set-up for Crystal Reports
[Link]
This table is used to store the location of the reports defined. This location should be
in a shared network place to which anyone with permission to run the report has
access. This report type must be set up before attempting to create a new Crystal
Report.
Figure 1 Defining the setup for Crystal Reports
Preparing Enquiries for use in Crystal Report
It is necessary to ensure that your enquiries are compliant with the layout standards
required by Crystal Reports. If you are using any enquiries that contain multi-value
fields, then any fields, which are not multi-valued, should have the CONVERSION
field flagged to REPEAT. This is to ensure that data generated is compliant with
Microsoft Access standards. These repeating entries can then be suppressed through
Seagate Crystal Reports .
Figure 2 Preparing Enquiries for use in Crystal Reports
Customising the Default Crystal Report Template
When the structure of a report has been defined, Seagate Crystal Reports is launched,
and the structure is put onto a default template. This template itself may be defined as
explained below. The default template is stored in file [Link], which may
either be stored in the location defined in [Link] (see MB-Task above), and
is the first place referred to when creating a new report, or in the T24 Browser
directory (which is checked if the first location does not contain the file). To change
the default template, the suffix of this record must be changed from [Link] to
[Link]. The record can then be opened & changed through Seagate Crystal
Reports.
Using the Report Designer to create a report
In order to create or modify the structure of a Crystal Report, Seagate Crystal Reports
must be installed on the client PC. The Report Designer may be used, in the first
instance, to create Report Control records tailored towards being used as crystal
reports.
Crystal Reports can be set up to run on data generated either from enquiries, or from
Delivery Messages. If the reports are going to be run from enquiries, the user must
first create the enquiries that are to be used before starting the report designer. If
delivery messages are to be used, you should first edit the [Link]
for the delivery messages that will be used, to set TEMPLATE to CRYSTAL.
Figure 3 Set up the [Link] for delivery messages
To create the report, select REPORT DESIGNER from the Tools menu. You should
receive the following window:
Figure 4 - Select Report Designer to create the Report
Select Create a Report and then click Next. The second screen should then appear:
Figure 5 - Create a Report, and then click Next
It is in this screen that you determine the source data that the report will be using. The
Source option indicates whether the report will run off delivery messages or enquiries.
If enquiries are to be used, these will be listed under Enquiries in T24 , which is
drawn from [Link] and may be navigated in the same way. Multiple
enquiries may be selected for the report. If the source is set to Delivery, then a list of
delivery templates is presented. Only one Delivery template may be used per report.
Once this has been selected, click next to go to Step 3.
Figure 6 - Set Report Control ID
Step 3 is where the [Link] id being created is set. It also links the
[Link] record to the report, which has set where the results of the reports
will be stored. When this has been done click Next to go to Step 4.
Step 4 Finish.
Figure 7 - Select Finish to create the Report
At this point, it is possible to import an existing database or report. We will cover this
later, in 0Importing Existing databases & reports. For creating a report to start with,
select FINISH. Assuming that Seagate Crystal Reports has been installed on your
system, this will then launch. At this point, T24 makes way to Crystal Reports for the
production of the report. We do not return to T24 until the report is completed.
Using the Report Designer to modify a report
Once the report has been created, it may be necessary to modify it, to add extra fields,
change the template etc. To do this, select Report Designer from the tools menu &
choose
Modify Report
A list of all Crystal reports available for modification should then appear.
Figure 8 - Use Report Designer to modify a Report
After selecting one of the above reports, you again return to step 4, creating a report,
and then on to Crystal Reports to customise the report.
Importing Existing databases & reports
By using these options, it is possible to import existing report designs, and an existing
database into a report. Thus, if required, databases and reports may be modified and
designed independently of T24 Browser (using Microsoft Access and Seagate Crystal
Reports ), and then combined together at a later stage in T24 Browser . Furthermore,
copies and multiple versions of reports can be created without having to start from
scratch with each instance.
Setting up and customising the report
From the Database drop-down menu, select Add database to Report. A dialog box
should appear giving a list of available databases, including a database for the report
that you have been creating, with the name specified in Step 3 (see above). Select this
database.
Figure 9 - Choose a DataBase File for modification
If you selected more than one enquiry at the report setup stage, you will then be asked
which tables (enquiries) you wish to use.
Figure 10 - Select tables (enquiries) to use
These tables will then be taken & presented as Microsoft Access-style relational
databases, where smart links can be set up between fields. As the Crystal Reporting
may attempt to match similarly named fields in different databases, it may attempt to
link the @ID records of the presented tables. Selecting the link and clicking Delete
should break these links.
Visual Linking
Figure 11 - Set up smart links between fields
Once the tables have been selected, insert appropriate fields from the tables onto the
Crystal Report Template. This is done by selecting Database Field from the Insert
drop-down menu, and then dragging and dropping fields from there into the Details
section of the template. When you have completed customising the report, save the
report without changing the name . This is important, as otherwise T24 would not be
able to find the report when it comes to presenting it.
Once the report has been saved, exit Crystal Reports to return to T24 . The report can
then be run through entering RPT <REPORT NAME> fromthe command line.
This will take you to the report table click on DISPLAY to view your selected report,
note you may not make an selections of data as all formatting to the report is done in
CRYSTAL.
From the DISPLAY of your report you are able to print.
Refer to the Seagate Crystal Reports for more detail on tailoring the reports to meet
your requirements, as all formatting or reports must be completed in Crystal Reports.
Designing Crystal Reports: Overview
Figure 12 Designing Crystal Reports Overview
Enabling links between enquiries
As T24 Enquiries are converted into tables in an Access Database, it is possible to
take advantage of Access functionality to form links and indexes between the
tables/enquiries. To do this, the tables/enquiries must be redesigned in Microsoft
Access.
Figure 13 - Edit design of tables through MS-Access
Upon finishing using Report Designer to create the [Link] record, a
database record is created in C:\Windows\Temp\Dsktemp. In order to allow linking
between two tables (Enquiries), edit the design of both tables through Microsoft
Access, to change the properties of the linking field so that the Indexed property is
set to Yes (Duplicates OK). In the example above, CUSTOMER_CODE is having the
Index property set to Yes. This should be done for all tables used in the database.
The tables have been changed and so the database file and the RPT file must be saved
with the same name but in a different directory to C:\Windows\Temp\dsktemp . This
is to ensure that the database is not overwritten when attempting to modify it. Once
this is done, exit from Microsoft Access and from Crystal Reporting to return to T24
Browser . We will now modify the report using the changed databases.
Once the database has been changed and saved to a separate location, you should
restart [Link] from T24 Browser . At step 1, select Modify Report,
select the report you were working on. At step 3, you should be presented with the
following window:
Figure 14 - Once the DB has been changed, restart [Link]
Ensure that Import existing database and Import existing Report are flagged, and
click Finish. Then select the report and database that you saved to a separate
location.
Figure 15 - Link between the different fields
You should now be able to produce a link between the different fields.
Using Crystal Reports in Batch Processing
Crystal Reports may be used during Batch Processing to produce account statements,
portfolio valuations, maturity analysis anything that may be created through the T24
Enquiry System combined with Crystal Report functionality may be produced and
automatically printed, faxed, emailed or stored, during the Close of Business cycle.
Setup for Batch Reporting
The procedure for running Crystal Reports in Close of Business is identical to that of
running standard T24 Reports during the end-of-day. An [Link] record
must be created which includes the [Link] id of the Crystal Report and
the enquiries to be used. At this point, care should be taken to ensure that the
enquiries are placed in the correct order on the [Link]. The id of
the Enquiry Report should be entered as data in the appropriate batch under the job
name of [Link].
Care should be taken to ensure that relevant files such as [Link] and
[Link] are set up to ensure that the results of the enquiry are channelled to the
correct destination. Refer to the Report Control Systems Administration Guide for
further details.