The “Display” page is used to define which columns are displayed in the report, the order the fields are displayed, and to set various display options.
There are nine Types available. Their use depends on the type of data being reported. Usage is outlined in the following table.
| Type | Used with Data Type | Additional Information | |
|---|---|---|---|
| None | Default | Values are displayed as the are found in the database | |
| Decimal_2 | Numeric | Numeric values are displayed with two decimal places. | |
| Currency | Numeric | Numeric values are displayed in a currency format based on the selected localization. See Note 1 below. | |
| Date | Date or DateTime | Displays date values based on the selected localization. See Note 1 below. | |
| DateTime | DateTime | Displays date/time values base on the selected location. See Note 1 below. | |
| Text | The data is treated as an email address and presents a “link” with the value. Clicking on the link opens the default email client on the user’s device and passes the text as the “To” address. | ||
| File | Text or Binary | This option presents a link that causes the system to attempt to download the file to the user’s device. See Note 2 below. | |
| Image | Image Binary | Used to display images in the report | |
| URL | Text | The data is treated as a URL and presents a link with the value. Click on the link opens the default browser on the user’s device and passes the URL to the browser. |
Note 1
If you need to report date and time values in a specific format that cannot be set by the localization options it may be necessary to use the SQL Convert function in the SQL Select for the report and present the value as a text value. More information on the SQL CONVERT function, and available formats, can be found here: https://docs.microsoft.com/en-us/sql/t-sql/functions/cast-and-convert-transact-sql.
Note 2
Beginning with Versago v2.4 it is possible to download files on disk or files stored as binary data in a database. The second option is primarily intended for files uploaded via a Versago form.
The files in a database approach does require that the FileContent value is not NULL. As it is very possible that a report row will not have a corresponding report to download, use the following SQ. Setting FileContent to 0 when the database value is NULL allows the report to execute without errors.
isnull(t1.FileName, 'No File') as [FileName], isnull(t1.FileContent,0) as [FileContent]
In both cases, keep in mind that any user that has access to the report can download any file listed in the report. If certain files should be available to certain group(s) of users, different reports may be needed.
Multipurpose Internet Mail Extensions (MIME) types identify the types of content that can be served to a browser or a mail client from a Web server. Since Versago is a browser-based application, any file types that may be downloaded must be defined to the web server.
The most common file types (PDF, XLXS, TXT, DOCX, etc.) are already defined in IIS (the Windows web server). The general process to add/maintain MIME types is described here: https://technet.microsoft.com/en-us/library/cc725608(v=ws.10).aspx.
One MIME type that is not defined by default is for Outlook email messages. These files have the extension .msg. Specific steps to add this MIME type are found here: http://blogs.catapultsystems.com/rhutton/archive/2013/10/25/unable-to-open-outlook-message-file-in-web-browser-msg/.
It is possible to calculate values at the time a report is executed and present them as a new column. This is done using the [Add Calculated] and [Update Calculated] buttons on the “Field Display Details” page.
See the Calculated Fields page for more information.
Go here for additional information on using images in reports.