Previous Topic: Deviation ReportNext Topic: Generic Histogram Free-form Reports


Free-form Reports

Free-form reports enable users to generate reports based on SQL queries of the CA Business Service Insight database or from any other external data source which can be accessed via a connection from the CA Business Service Insight server. This also includes any other types of data source which can be accessed via ODBC, such as Excel, Access, Lotus Notes, Text files etc. Free-form reports are commonly used to configure statistical reports based on data created by the Business Logic commands Tools.SaveRecord and Tools.SaveFields.

Free-form reports connect via a connection string to a selected database and execute an SQL query on the database using a query string. Parameters can be added to both strings in order to create dynamic reports that enable the user to enter or select specific values to include in the query, such as the user name and password for connecting to the database.

Free-form reports are displayed in Chart, Data and Filter tabs similar to reports generated using the Report Wizard.

Note: Free-form reports can include charts only if all columns, apart from the first column, are numeric. The data in the first column is used for the X-axis titles. Column names are used for other titles.

Due to the fact that free-form reports use direct access to a database and an open SQL query, maintenance is problematic. Great care should be taken not to affect the underlying data which serves as a source for the free-form reports. When reports are generated from an external data source, it is recommended that a notification process be set up to ensure that those data sources are not changed without first consulting the Contract Manager responsible for the free-form data reports.

General Information to keep in Mind when Creating Free-form Reports.

Function FormatDate(DateField)

    If DateField = "" Then
      FormatDate = ""
    Else
      Dim PeriodYear, PeriodMonth, PeriodDay, PeriodHour,
  PeriodMinute, Periodsecond
      PeriodYear    = DatePart("yyyy",DateField)
      PeriodMonth   = DatePart("m",DateField)
      PeriodDay     = DatePart("d",DateField)
      PeriodHour    = DatePart("h",DateField)
      PeriodMinute  = DatePart("n",DateField)
      Periodsecond  = DatePart("s",DateField)
      FormatDate  = PeriodDay&"/"&PeriodMonth&"/"&PeriodYear& _
 " "&PeriodHour&":"&PeriodMinute&":"&Periodsecond
    End If
End Function