Report Templates

Configuration ‣ Reports and Dashboards ‣ Templates allows you to create, edit and delete report templates. These templates can be used to generate reports throughout NEXUS IC.

Report templates (once configured), can be given a Status and a Category. Additional report categories can be configured (see Report Categories).

You can mark a particular report template as a Dashboard report: edit the template and tick the Dashboard Report box. That template will then be available when users visit the DASHBOARDS area. If you tick Dashboard Report, Section Heading, Multimedia Thumbnails and Table of Contents types will be marked with a anomalous to indicate that these elements will not be displayed in a Dashboard template.

Similarly with Asset Dashboard: set a template as your Dashboard report by right-clicking it and choosing Asset Dashboard or by selecting it and clicking the Asset Dashboard button, and each time you visit an asset on the Assets screen with the Dashboard tab visible, your selected dashboard template will be executed. (You should ensure that the template you use does not take long to execute — if it does, you will be waiting every time you change asset with the Dashboard tab visible.) (In order for a Dashboard report to reflect the selected asset in the asset hierarchy, it needs to have Simple Source in it which retrieves VN_ID from a User Input Parameter.)

General strategy

In your final report template, you want to present user-visible things like headings, text, tables, drawings, etc. To power these, you will need Simple Sources to query data from the database. To power any custom columns in the sources, you will need functions.

NEXUS IC’s design lets you create these things in whatever order is convenient to you: you can create all your functions first, then your sources, then the user-visible elements; or you can rough out your report in an empty state by starting with the user-visible elements, and then go on to create the Simple Sources that underly them, and then create the functions needed for those sources. And it’s usually easier to work in this latter way: create your report from the top down.

Add/Edit

To add a new report template, click Add. You’ll have to give your new report a name, and we strongly recommend you give it a category.

To edit an existing one, select it and click Edit, or just double-click it.

In both cases, you’ll be taken to the same dialog.

Report Template dialog

At the top of the dialog, you’ll see Name, Status, Category and Comments.

At the left of the dialog, you’ll see a view of available elements. This is broken into two parts: Sources contains the things you can get data from, and Elements contains all the things that you can display in the report. Most elements need a source to get data from. A single source can give data to more than one element.

At the right, you’ll see the Report Layout tree showing all the elements currently in the report.

Take a look at some existing templates and you’ll see how they’re put together.

Often the simplest kind of report you’ll want to design contains a single table, displaying data from a single source. To create a report like this, drag a Simple Source from ‘Available Elements’ at left onto the ‘Report Layout’ element at right, and drag a Table of Data (or a Vertical Table or a Pivot Table) from ‘Available Elements’ to ‘Report Layout’. (In general, you can drag elements onto the root ‘Report Layout’ element, in which case they will appear at the bottom of your report; or drag them onto another element, in which case they will appear just above that element.)

Report Template dialog toolbar

(As distinct from the overall Reports dialog toolbar.)

  • Perform an operation
    Perform the selected operation (Add, Edit, Delete, Move Up, Move Down, Copy, Paste) on the element currently selected in the Report Layout tree. Most of these operations are also available by right-clicking on an element in the tree.
  • Copy an element
    You can copy an element from elsewhere in this report template, or from another report template, with this button. Note that “child” elements will be brought across too — if you Copy an Element Group which contains other elements, all those other elements will be copied in at the same time. Your new element will have “Copy of” prepended to its name. Filter values may not be fully copied across, so check your Simple Sources’ Filter tabs after copying.
  • Parameters
    Configure parameters for this report template. Parameters allow the user to specify values for the report. For example, you could add a parameter called Asset View, allowing the user to specify what asset view they would like the template to pull information from. The user can select parameter values each time they interactively run a report. Unlike most other NEXUS dialogs, the Parameters dialog does not have an Add button — to add a parameter, simply specify the name of the parameter you would like added in a simple source filter. Then come here to the Parameters dialog to adjust other values for your new parameter. Dashboard reports should not use parameters. Asset Dashboard reports should use a parameter which specifies the asset. NEXUS will automatically supply this value to the template based on the user’s selection in the Asset tree when the asset dashboard report is run.
  • Generate
    You can generate output from your report template from right here without having to click OK and drop back out to the Reports dialog. Your report will be generated with the its previously selected parameter values.
  • Move Up
    Move the element selected in the Report Layout tree up by one spot. You can also do this with Ctrl-Up arrow.
  • Move Down
    Move the element selected in the Report Layout tree down by one spot. You can also do this with Ctrl-Down arrow.

You can also move items up and down by drag-dropping them within the Report Layout tree. You can also reparent items by drag-dropping them onto an Element Group.