Table of Contents

Version: 5.0 / 2019-07-01

Introduction

The VisionX reports module allows the user to create reports in the following formats: Word RTF (documents), Excel (spreadsheets), XML, and PDF. Reports are used to provide selected data for the user to download. For certain report types, this data can then be edited locally and uploaded back into the application.

The report templates can easily be edited to adjust content or graphics and modified to match the user's corporate design.

The following chapters provide a detailed description of the creation and integration of the different report types as well as examples of their use.

Basics

Reports are created, edited, added to workscreens, and deleted in the application's menu. As mentioned above, there are four different types of reports:

When a report is created, a template is automatically generated in the respective format. This template can be downloaded, edited, and then uploaded as a modified template. The modified template is then used to create the respective report and is filled with data from the selected tables or records.

The templates use tags as tags for the actual data. These tags can be placed anywhere in the document and can be deleted and later added again. This allows for easy and quick generation of reports from any of the application's tables. Reports are conveniently displayed through the use of actions, such as the click of a button.

Requirements

To generate a report, a workscreen first has to be created that contains the required database tables. These tables are then used to populate the report. If the data shown in the report is to be restricted by certain filter criteria, those criteria have to be defined in the workscreen. For example, the filter criteria could be one of the following:

Detailed information regarding workscreens and filter can be found in the VisionX documentation.

Step-by-Step "Create/Edit Report"

Once all the requirements have been met, we can begin generating the report. The Reports Wizard in the application's menu is used to create new or edit existing reports.

Create Report Wizard - New or Existing Report

Since reports are managed by workscreen, the first step in the wizard is the selection of a workscreen.

In the second step, creating a new report or editing an existing report can be chosen.

One of the following report formats is selected in step three:

Depending on the VisionX license, certain formats may not be accessible or additional formats may be available.

In addition, one of the following report layouts can be chosen:

Create Report Wizard - Select Layout

In the next step, the master table (highest level table in the report) can be selected.

Create Report Wizard - Select Master Table

Depending on the layout, a number of options can be selected. This is particularly relevant for the “List With Details” format. The following options are available:

Create Report Wizard - Select Columns

In the last step, the columns that are to be displayed in the report can be chosen for each table.

Create Report Wizard - Assign "Show Report" to a button

In this step, the newly created report can be assigned to a button. An action is automatically created, or an existing action is edited, to show the report.

The Reports Wizard can also be used to edit existing reports.

Edit Report Wizard - Change Layout

To edit an existing report, the report template is downloaded and edited using Microsoft Word, Excel, XML, or any other suitable editor and then uploaded back to the application. The templates are based on tags, which are populated with data from the database tables when the report is created.

Manage Reports

All examples used on the following pages are based on the sample application “Contacts”, which is included with VisionX. The Report Wizard is started by selecting “Report” in the application's menu.

Select Workscreen

As mentioned previously, every report is based on an existing workscreen which has to be selected when the report is created. The report can then be made available for down- and upload.

Manage Reports - Select Workscreen

Select Option

In the next step, the following choices are available under “Select Option”:

Manage Reports - Select Option

Select Layout

When a new report is created, the format and a standard layout can be selected. The following formats are available:

Manage Reports - Select Layout

Simple List

A “simple list” displays the data from a table in list form. Example:

Manage Reports - Simple List

List With Detail Information

A report of the type “List with Detail Information” displays a master table with exactly one detail table in list form. Example:

Manage Reports - List with detail information

Detailed Form

A report of the type “Detailed Form” allows for the display of a master table as a form, with or without one or more detail tables. In the Report Wizard, the master table is selected first. Then, the detail tables can be selected, if required. In the final step, the columns that are displayed in the report are specified.

Manage Reports - Detailed Form

Select Data

Depending on the report type, a varying number of tables can be selected.

Simple List

Exactly one table can be selected.

Manage Reports - Select Datasource

List With Detail Information

Exactly one master table with a exactly one detail table can be selected.

Manage Reports - Select Datasource

Detailed Form

For a detailed form report, a master table can be selected, as well as any number of detail tables. The master table is chosen in the first step:

Manage Reports - Select Datasource

In the next step, the detail tables are selected:

Manage Reports - Select Columns

Select Columns

The following step determines which columns are displayed in the report. Columns can be selected for the master table and for all selected detail tables. There is an additional column for the detail tables that is not selected by default. This column represents a reference to the master table; selecting it is optional.

Manage Reports - Select Master/Detail Columns

Customize Appearance

The final option is related to the placement of the master records. If this option is selected, each master record is placed on a new page (for documents) or on a new sheet (for spreadsheets). The option is not selected by default, in which case the master records are placed sequentially on the same page.

Manage Reports - Customize Appearance

Edit Report (Template)

After a report has been created, it can be edited at any time. To do this, “Reports” is selected in the application's menu. After the workscreen for which the report was created is chosen, “Edit an existing Report” is selected as well as the report that is to be edited.

After the selection, the following actions can be taken:

Edit Report Template - Select Layout

To change a template, it is downloaded and saved locally. It is then opened in the respective program (Word, Excel, etc.) for editing.

Report - Document Template

Existing text, such as column labels, can be edited and reformatted in the template. In addition, additional text or pictures can be added to the template and the overall formatting (font, etc.) can be modified.

Tags are replaced by data when the report is created. Columns can be deleted and added again. For detailed information regarding tags please see Tags.

Report - Document Template with customizations

After the template has been edited, it is uploaded back into the application using the “Change Template…” button. It is important to note that the master record with its corresponding detail record is also located within a loop tag, which cannot be deleted.

In the example above, the loop tag is placed in the template using font size 1. If the font size is increased, the loop tag is displayed above and below the master record.

Report - Document Template with highlighted loops

Example:

Report - Document with data

Report - Document with customizations and with data

Column Overview

If a column that was deleted from the report is to be added back at a later time, the respective tag tag can be found in the column overview. This overview is displayed after selecting “Edit an existing Report”. All columns of the tables used in the report are shown.

Edit Report - Column Overview

Tags

Any column can be added to the report using the defined tags. A tag consists of the column name in [ ] brackets. The predefined tag can be found in the previously discussed column overview.

Formatting

Depending on the column type (number, date, etc.), the output value can be formatted automatically. The format is defined in the tag as follows:

The following types/formats are available:

Important:

For spreadsheet reports, the format should NOT be specified in the tag, since it would be interpreted as text. The format for the cell should be set in the template.

Loops

For list type reports (simple list, list with detail information), all columns that are displayed in the report have to be defined within a loop tag. This loop tag has the following format for the beginning and end of the loop:

A complete loop for a table would be defined as follows:

[LOOP@contacts] [SALU_SALUTATION] [FIRSTNAME] [LASTNAME] [LOOP@contacts]

Between the beginning and end of the loop, additional text, formatting, etc. can be added which will then be inserted at the specified location for each record.

The following should be noted:

A loop tag for the master record is not required for reports of the type “detailed form”. Columns in the master table can be accessed directly:

In addition, it is possible to individually access specific row numbers. This makes it easier to display individual detail records. Also, the reference remains within the spreadsheet.

The following format is used to access individual row numbers:

If only one value in the table is required, the following abbreviated form can be used:

Spreadsheet Example

Report - Spreadsheet Template

The report will then be displayed as follows:

Report - Spreadsheet with data

XML Example

Report - XML Template

The report will then be displayed as follows:

Report - XML with data

Actions

To display a report, it has to be associated with an action in the respective workscreen. For example, the report can be displayed at the click of a button or upon the selection of a specified filter criteria.

The following actions are available:

Show Report

The specified report is displayed, either in a browser or using the related program (e.g. Word, Excel), depending on how the PC is configured.

Parameters: [List of all reports of the workscreen]

Example: Show Report | Form Report Contacts

Download Report

The specified report is downloaded. It can then be saved to the local hard drive and opened from there.

Parameters: [List of all reports of the workscreen]

Example: Download Report | Form Report Contacts

Save Report

The specified report is saved in a table. The save location is determined by two parameters: The report's file name is saved in a text column of the table; the file itself is saved in the current row of a table column of the type Image or File.

Parameters: [File name: List of all columns of all tables in the workscreen], [File: List of all columns of all tables in the workscreen] | [List of all reports in the workscreen]

Example: Save Report | [Contacts.Filename] | [Contacts.Image] | Form Report Contacts

Hint: This function can be used to save reports that are created by the application in a table. Example: lists, proposals and other business reports.

Import Report (Merge)

The specified report is imported. All of the report's data is transferred to the respected rows and fields of the workscreen. If the “Merge” option is selected, only modified, deleted, or new information is imported. Data that already exists is not added separately. If the “Insert” option is selected, all data rows, including existing rows (tested for similarity) are transferred. This functionality is only available for XLSX (Excel) and XML reports that were created using VisionX. Of course, the report templates can be edited. This command is used to import offline forms into the application.

Parameters: [List of all commands of the workscreen]

Example: Show Report| Import Report (merge) | Form Report Contacts (xls)

Import Report (Insert)

See “Import Report (Merge)” above.

Upload

In general, only reports of the type spreadsheet and XML can be uploaded back into a workscreen after they have been modified locally. Requirements for successful upload include:

XML

Spreadsheet

Differences Between the Report Types

Document and XML

Formatting

If a particular format is required for an output value, it has to be specified separately. See Formatting.

Spreadsheet

Problems With File Contents

File contents (both files and images) cannot be displayed in a spreadsheet and result in an error message. The respective columns should be removed from a spreadsheet report, either during the creation of the report or by subsequent editing of the template.

PDF Reports

The creation of PDF reports is a little more involved compared to the creation of document or spreadsheet reports. A PDF report is created like a document or spreadsheet report but is afterwards converted into a PDF by using a PDF conversion service.

This has the advantage that the report templates are easily editable with Word or Excel. With the conversion an “immutable” document is created which can be easily archived and is better suited for being sent as information to clients.

The conversion itself is carried out by a PDF conversion service. This service must be provided by the customer and requires a Windows (server) system in combination with a conversion software. This software is offered in combination with VisionX depending on the chosen license.

The PDF conversion service must be configured once in VisionX. This can be done in the VisionX preferences.

VisionX - Preferences Button

Just the name and the address of the server are required for completing the configuration.

PDF Conversion Service - Preferences

After the PDF conversion service has been configured, the PDF options become available when creating new reports.

Create Specification

The application's menu contains the “Specification” option, which can be used to create the database documentation or the specification for the workscreens.

For further information on how to create specifications, see the the VisionX documentation.

The specification template uses the same mechanism as all the other reports. It can therefore be edited easily.