Reports

You can define reports that are generated periodically and sent automatically to your customer and partner users as a PDF attached to an email.

A report is sent only to users who, in the profile preferences page, have chosen to receive periodic reports.

Creating a Report

To add a new Report, you should:

  1. Enter the Interfaces / Reports page.

  2. Select whether you need to create a General report or a Thing Definition specific report.

  3. In case of Thing Definition, select the target Thing Definition.

  4. Press the Add Report button.

  5. Provide the name of the report and additional information.

  6. Press the Save button.

Editing a Report

In the case of a general report, you must select whether it must be generated for customer or partner users.

The report is defined by:

  • Name: the name uniquely identifying the report in the configuration.

  • Description: a descriptive text of the report content and purpose.

  • File Name: the name of the file to be attached to the email.

  • Title: the title of the report included in the report cover.

  • Scheduling: when the report must be generated, and sent to users.

  • Template: the template describing the content of the report. In the case of general report, it must be a general template, else a thing definition one.

  • Subject: the text to be used as email subject.

  • Body: the HTML text to be used as email body.

According to the specified scheduling policy, report generation occurs after midnight, taking into account the time zone of the customer, partner, or thing.

The content of the PDF report is generated from a template, defined in the same way as for dashboard page templates.
A report is a static content, so controls and filtering buttons cannot be used.

Report Scheduling

A report can be scheduled so that it is automatically generated and sent periodically to the DPS users.

Within the Scheduling option you can select among:

  • None: the report generation is turned off.

  • Weekly: the report is generated every week, you must also specify the week day (e.g. every Monday).

  • Monthly: the report is generated every month, you must also specify the day of month (e.g. every 10th of the month).  

Report Preview

You access a preview of the report directly from the report definition page.

  1. Select the Report definition whose preview must be displayed.

  2. Select a User View in the Console top bar. This is required to define the context used to generate the report (e.g. Customer).
    In case of Thing Definition report, you must also select the location and thing.

  3. Click on the Preview button.
     

A new browser tab is opened with a preview of the calculated report with the selected context.

.../dashboard/thing_details/<thing_id>/reports/<report_id>
.../dashboard/customer_details/<customer_id>/reports/<report_id>
.../dashboard/partner_details/<partner_id>/reports/<report_id>

Once the page is open, you can use the print function of your browser to see how the report looks.

The displayed page includes the cover and the report template loaded by using the selected context, and non-printable elements are automatically hidden.