Skip to content

Reports - Get started

Requirements

The following scripts are required to use Reports and all related functionality covered in the Reports guides:

  • scReportScheduler
  • scReports
  • scAlert

This section covers the basics of the Report module, including how to add a new template, how to use existing templates in WideQuick Runtime®, and how to schedule reports to run automatically.

Setting up the Reporter

WideQuick includes a set of default report templates, found under Reports in the project tree. Custom templates can also be created or imported through WideQuick Designer®.

To create a new template, right-click Reports in the project tree and select Add Report. This will open the following window:

Add report
The Add Report dialog in WideQuick Designer.
  • Name — The name of the report.
  • Source file — Import a premade template by clicking the folder icon. To start from a blank template, see the gif below.
  • Output directory — The folder where generated reports will be saved. By default, reports are placed in the Reports folder. Click the folder icon to select a different destination.
  • Generate access — Choose between All Systems (default) or Local System Only.
  • Output name — Customize the report file name using the Output Name Builder. A preview of the name is shown in the Name Preview field.
Create new report template
Creating a new report template from scratch.

The new template will appear under Reports in the project tree, where it can be edited to display the desired information. For more information on creating custom templates, see here.

Adding a template

When adding a custom template, a corresponding ReportController must also be created. This is explained here.

Using the Reporter in WideQuick Runtime®

To manage reports in WideQuick Runtime®, navigate to History → Reports → Reports - List. This page displays a list of all generated reports with two columns:

  • Report — The name of the report, defaulting to Alarm Report [#] where [#] indicates the generation number.
  • Timestamp — The date and time at which the recording ends.

From this page, reports can be created, removed, or sent as email attachments. Sending reports by email requires an SMTP server to be configured, which is explained here.

Report
The Reports list workview in WideQuick Runtime.

To create a new report, click Create Report. A configuration menu will appear on the right. By default, four report types are available: Alarm Report, Alarm Report One Alarm, Energy Report, and Energy Report Week. Switch between them by changing the Report template dropdown.

Alarm Report
Alarm Report controller.
Alarm Report One Alarm
Alarm Report One Alarm controller.
Energy Report
Energy Report controller.
Energy Report Week
Energy Report Week controller.

The four ReportControllers share a similar structure but differ in which options are available and which loggers are shown in the TreeView. Below is a description of each option:

  • Report template — The report template to use. Defaults to Alarm_Report. A guide to creating templates can be found here.
  • Customize title — Sets the title of the report, which appears on the front page.
  • From — The start time of the recording period. This field is locked for Energy Reports, as they require historical data from that point onwards. See here for configuration.
  • To — The end time of the recording period.
  • LoggerList — Displays the signals available in the selected logger. Locked for Alarm Reports, as they include all signals automatically.
  • Number of events — The maximum number of events to include. For Energy Reports, this defaults to the number of hourly events in the selected time period.
  • Report file format — The output format of the report: either PDF or PDF and XLSM.
  • Report status — Displays the current status of the report, including completion or any errors.

The Alarm Report and Alarm Report One Alarm collect alarm data for the selected time period. The Energy Report displays energy data over a three year period, with an individual graph per year and a three year summary. The Energy Report Week follows the same structure but displays data on a weekly basis, covering three weeks by default with an individual graph per week and a three week summary. For detailed configuration of each report type, see Reports — Configuring.

Once generated, the report is added to the report list where it can be previewed.

Scheduling a report in WideQuick Runtime®

To schedule a report, navigate to History → Reports → Reports - Schedule.

Report schedule
The Report Schedule workview in WideQuick Runtime.

Click New schedule to create a new schedule. A menu with three pages will appear on the right. Note that the second page changes depending on the selected Report template.

Schedule page 1
Page 1 — schedule name, template, and frequency.
Schedule page 2
Page 2 — report-specific configuration.
Schedule page 3
Page 3 — recipients and output format.

The second page mirrors the report configuration described in the previous section. Below are descriptions of the options on the first and third pages:

  • First page

    • Name of schedule — The name of the schedule.
    • Active schedule — Toggles whether the scheduled report is active and will be sent.
    • Report template — The report template to use. Defaults to Alarm_Report. See here for guidance on creating templates.
    • Frequency — How often the report is generated. The available options and their additional settings are:

      • Daily — Select a specific time of day. Times are available in 30-minute intervals.
      • Weekly — Select a day of the week and a specific time of day.
      • Monthly — Select a day of the month and a specific time of day. The system automatically handles months with 30 or 31 days, as well as February and leap years.
      • Quarterly — Select which month of the quarter (1, 2, or 3), the day of that month, and a specific time of day.
      • Yearly — Select a month, the day of that month, and a specific time of day.
    • Description of schedule — A description of the schedule.

    Note

    Schedules are checked every 5 minutes. The configured time is therefore approximate — reports may be sent up to 5 minutes after the set time.

  • Third page

    • Subject line — The subject line of the email in which the report is sent.
    • Recipient — The recipients of the email. Accepts both email addresses and aliases.
    • Alias — Displays available aliases. Select one and click Add to add it as a recipient.
    • List of Recipients — Shows the full list of recipients, indicating whether each entry is an email address or an alias.
    • Report file format — The format in which the report is sent: PDF or Excel.

Next Steps

  • Configuring — built-in report templates and report history
  • Extending — creating custom templates and report controllers