ReportWorX64 - Quick Start

 

This information is intended to give users a quick start guide on configuring and running reports using ReportWorX64. Microsoft Excel must either be installed on your ICONICS server or on another system that also has ReportWorX64 Express installed. The example assumes you are running the sample Hyper Historian and ReportWorX64 configurations.

 

ReportWorX64 is the report generation engine of GENESIS64 and the ICONICS Suite. Users configure report templates in Excel, using the same add-in as in ReportWorX64 Express, upload the templates to the ReportWorX64 server, and configure the reports to run on schedule or on demand. Finished reports can be delivered in a variety of ways including email, SMS, and file copy, or can be stored in the ReportWorX64 server to be retrieved on demand.

 

Microsoft Excel is required to configure templates, but the ReportWorX64 server itself does not need them to generate reports. Templates can be configured on a remote development system and uploaded when required. Different versions of templates can be stored on the server and downloaded as necessary to make updates.

Configuring Report Template in Excel

To build a report template that can be uploaded to Workbench, data points and parameters must be added to an Excel spreadsheet. This will be populated with real data when the report is executed.

 

This example will guide you through creating a template that displays the last five hours of Hyper Historian data from the time the report has run.

  1. For best results, make sure Hyper Historian is started on the ICONICS server and is logging data.

  2. Open Microsoft Excel on a machine with ICONICS Suite, GENESIS64, or ReportWorX64 Express installed.

  3. You may see a Microsoft Office Customization Installer. If you do, click Install.

Figure 1 – Microsoft Office Customization Installer

 

  1. Open a blank workbook.

  2. If the ReportWorX64 ribbon is missing, follow these steps:

    1. Close Excel.

    2. Go to Start > ICONICS Tools > ReportWorX Express Manager.

    3. Make sure Enable ReportWorX Express Excel plugin is checked.

    4. Select OK.

    5. Start Excel.

    6. If the ribbon is still missing, go to File > Options.

    7. Select Add-ins.

    8. Look for the IcoRwxSheetExcel add-in in the list.

    9. If it appears in Disabled Application Add-ins, go to the Manage dropdown and select Disabled Items.

    10. Select Go.

    11. Select the IcoRwxSheetExcel add-in and enable it.

    12. If the IcoRwxSheetExcel add-in appears in the Inactive Application Add-ins list, go to the Manage dropdown and select COM Add-ins.

    13. Select Go.

    14. Check the box for IcoRwxSheetExcel.

    15. Select OK.

    16. The ReportWorX64 ribbon should now appear. If it does not, contact technical support.

  1. Go to the ReportWorX64 ribbon.

  2. The ReportWorX64 add-in starts as disabled. If it is disabled, all buttons will be grayed out except Quick disable. To enable the add-in, select Quick disable.

  3. If your Excel is remote from your ICONICS server, select FrameWorX and configure your FrameWorX server location. Restart Excel to have the changes take effect.

  4. Select a cell in the sheet to activate the add-in.

  5. Select Parameters.

  6. In the table, select Click here to add new item.

  7. For Display Name, enter Now.

  8. Optionally, enter a description.

  9. For Parameter type, choose Automatically evaluate a date and time.

  10. The Date Type should be set to Today.

  11. Add a second parameter.

  12. For Display Name, enter 5HoursAgo.

  13. Optionally, enter a description.

  14. For Parameter type, choose Automatically evaluate a date and time.

  15. The Date Type should be set to Today.

  16. Select Use offset.

  17. Set the Offset range to Backward and 5 hours.

Figure 2 – Configuration for 5HoursAgo Parameter

  1. Select Save and close.

  2. Select cell A1.

  3. Add a data source to cell A1 by using Add > Data source in the ReportWorX64 ribbon or the context menu.

  4. In the data browser, select My Computer > Historical Data > Hyper Historian > Configuration > Various Signals > Ramp Fast.

  5. Select OK. Cells A1 through J2 should now appear with some text and notes (red triangles) that indicate it is mapped to a historical tag.

Figure 3 - Mapped Cells

  1. Select one of the mapped cells.

  2. Edit the data source by using Edit > Data source in the ReportWorX64 ribbon or the context menu.

  3. Make sure the Fill Method is set to Auto.

  4. Next to Start Date, select the Use Parameter.

  5. For Start Date, choose 5HoursAgo.

  6. Next to End Date, select the Use Parameter.

  7. For End Date, choose Now.

  8. For Processing Range, choose Minutes.

  9. For Processing Time, choose 15.

Figure 4 - Historical Data Source Configuration

 

  1. Select Save and Close.

  2. Save the Excel file with a name and location of your choosing, such as the Desktop. Remember the name and location for future steps.

  3. Close Excel.

Configuring Report in Workbench

This section will guide you through uploading the file you just created to the ReportWorX64 server to use as a report template, then using that template in a new report.

  1. If you were configuring your template on a remote machine, copy the Excel file to your ICONICS server.

  2. On the ICONICS server, open Workbench.

  3. Select Reports > Templates.

  4. Add a new template by selecting Add Template from the Home ribbon or the context menu.

  5. Name the template TestTemplate.

  6. Optionally add a description.

  7. Select Apply.

  8. You will be prompted to select a template file. Choose the Excel file we created in the previous section.

Figure 5 – Selecting a Template File

  1. Optionally fill in a comment about this initial template version.

  2. Select OK.

  3. When the template has finished uploading there should now be one available template version. It should be active.

Figure 6 - Report Template Added in Workbench

  1. Select Reports > Configurations.

  2. If you do not already have a configuration in this folder:

    1. Create a new configuration using the Add Configuration option in the Home ribbon or context menu.

    2. Give the configuration a name.

    3. Select Active Configuration.

    4. Select Apply.

  1. Select Sample Configuration, or the configuration you added in the previous step.

  2. Add a new report using the Add Report option in the Home ribbon or the context menu.

  3. Name this report, TestReport.

  4. Select The report is enabled.

  5. In the Report Template section, for Selected template, choose TestTemplate.

  6. Select Apply.

Executing Reports

In ReportWorX64, you can schedule reports to execute at a specific time or under specific conditions. Use Actions like workflows, schedules, and triggers to execute a report. You can also manually generate reports from GraphWorX64 using the ReportWorX Navigator and the ReportWorX Viewer. The generated report is saved in a runtime database that can be separate from the configuration database. Generated reports can be downloaded in different formats, including Excel, PDF, and HTML.

 

Redirector commands, including Send Email, Send SMS, File Copy, Print, and Web Publishing, can be executed when the report succeeds, fails, or any time it completes regardless of status.

Using the Pre-Built Reporting Display

This section will instruct you on using the built-in Reporting display to execute reports. (A later section will instruct you on how to build a similar display of your own that can be customized to your needs.)

  1. Launch the built-in Reporting page by either:

    1. Go to Start > ICONICS Tools > Reporting.

    2. Open a blank display in GraphWorX64 and go into Runtime. From the Runtime ribbon, choose ReportWorX64.

This will launch GraphWorX64 with the pre-built Reporting display. The tree on the left shows the list of currently configured reports.

 

Figure 7 - Reporting GraphWorX64 Display

 

  1. In the tree, select TestReport.

  2. Select Execute.

Figure 8 – Generated Report

  1. Once the report has been generated, the report window will update. Select the download icon next to Generated to download the report and view it.

Creating Your Own Reporting Display

Rather than using the pre-built reporting display, you can also create your own.  

  1. Open GraphWorX64 to a blank display.

  2. Go to the Controls ribbon.  

  3. Add a ReportWorX Viewer and a ReportWorX Navigator to your display.

  4. Select the ReportWorX Viewer.

  5. Go to the Properties panel.

  6. Set CommandingName (in the MiscCommanding section), to rwxView.

Note: The CommandingName can be any text, as long as the same name is used in the relevant step below in place of rwxView.

  1. Select the ReportWorX Navigator.

  2. Go to the Properties panel.

  3. In the Misc section, set both of these properties to rwxView:

NOTE: If desired, you could add two ReportWorX Viewers and use one for executing reports and another for viewing them.  Give each ReportWorX Viewer a unique CommandingName and put the desired names into the different Load fields of the Navigator.

  1. Go into runtime. This display should work exactly as the prebuilt Reporting display described in the previous section. (Follow the steps in that section to execute and download a report.)

Figure 9 - ReportWorX Navigator and Viewer

Executing Reports on a Button Press or Command

You can also execute reports using a button by writing a 1 to the @@Execute tag for the report.

  1. If you still have the display from the previous example, go into configure mode. Otherwise, open GraphWorX64 to a blank display.

  2. Add a button to your display.

  3. Select the button and go to the Dynamics panel.

  4. Set the Command to Write Value.

  5. For the data source, browse to My Computer > Reports > TestReport > @@Execute.  

  6. Set OnUpValue to 1.

Figure 10 - Pick Action to Execute Report

 

If your report has any parameters, you will need to supply them in the data source as part of the tag name.  String values may be enclosed in double quotation marks, but this is not required.  An example of an @@Execute tag containing parameters is:

 

rwx:Order Details Report/@@Execute<@param1=ALFKI>

 

NOTE: If you have configured your parameters to have separate display values you must use the non-display value in the tag path.  For example, for the example Order Details Report you must use the CustomerID (like “ALFKI”) not the ContactName (like “Maria Anders”).

  1. Go into runtime and push the button. This will tell the ReportWorX64 Server to execute that report.  If you have the ReportWorX64 Viewer and Navigator on your display you can select your report in the Navigator and see the result in the Viewer.

You can use the @@Execute button to trigger a report from anywhere that can write a value, including Workflow, BridgeWorX64, and anything that can execute a Write Value command.

 

NOTE: The Run Report Command was designed to run 32-bit ReportWorX reports.  It will not work for ReportWorX64 reports.  Use the Write Value Command and the @@Execute tag for the report.

 

Along with the @@Execute tag, each report also has some other helpful tags that allow you to see the state of the report and tell when it has run.

See Also:

About Reports in the Workbench