Wiki

Scale Your Enterprise

User Tools

Site Tools

mbstring extension must be loaded in order to run mPDF

versago3:dataview_setup

This is an old revision of the document!


Setup

Basic configuration about the data view is defined on the Setup page.

Information

  • Name is a unique name for this data view.
  • Title is displayed in the Versago user menus
  • Category is the grouping mechanism used in the default Versago menu structure.
    • Previously defined categories can be selected from the drop-down list. A new category can be created by typing the desired value and selecting Add from the drop-down.
  • Description is an optional internal explanation of the data view.
  • Instruction is displayed at the top of the user data view page.

Availability

  • Roles define the group of users that have access to the data view.
  • Activate the Public option if the data view should be available prior to a user logging in.
  • Activate the Do not show in menu option when you have a report that you do not want to be displayed in the standard Versago menu structure.
    • The most common use of this option is when the report is only used as a lookup tool in Versago Forms, or as a sub-report in other Versago Reports.

Presentation Format

  • List or Chart format is the default “row & column” presentation.
  • Enable Paging is used in conjunction with Page Count if you want to ensure that a specific number of records are displayed on each page.
  • The Schedule format presents the data view in a calendar. See the Schedule page for additional configuration information.

Connection

  • Select the Connection Name from the list of configured connections. See the Connections page for information on configuring database connections.
    • When a connection is selected, the associated database name is displayed to the right.
  • Select the Data Source Type

Data Source Types

SQL Query

When this option is selected, a SELECT SQL statement can be entered manually or pasted from another source such as SQL Server Management Studio.

  • Enter the SELECT statement in the “Editor” area.
  • Click [Execute] to validate the statement.
  • Standard SQL error messages will be displayed if errors are encountered.
    • If the statement is correct, the first 50 records of the dataset are displayed in the “Results” area.

SQL Statement Restrictions

Certain SQL statements are not allowed in the SQL Select function.

  • An Order By clause cannot be used except in cases where the statement contains a TOP operator. The ordering (sorting) is handled by the report output process. See Supplemental Field Controls for additional information on sorting.
  • A Select Distinct statement cannot be used directly. This is due to some internal constraints used in the Versago SQL processing. If “Select Distinct” is needed it will need to be done using a sub-query. An example is found » here.
  • Computed values in the SQL statement must be assigned an alias. For example, the statement “ColA + ColB” will not work. Instead, you would need to use something like “ColA + ColB as [CalcValue]” where [CalcValue] is the alias. “CalcValue” is then seen as a valid column in the subsequent report definition steps.

Crystal Report

A different data presentation option is provided through the Crystal Report method. In this case a Crystal Report is developed outside of Versago. The report is then registered in Versago and used as the presentation method.

  1. Select the Crystal Report object type.
  2. A dialog box is presented to select the desired Crystal Report.

  1. Click [Choose File] to open the standard Windows Explorer tool.
  2. Locate and “open” the desired Crystal Reports file (.RPT).
    1. The file name is displayed in the Versago dialog.
  3. Click [Select] to associate the Crystal Report file with the Versago report.
    1. Once the file has been selected you will see file path information displayed in the Report Data Source box.

The Crystal Report source file is copied from the original location to the folder “C:\Program Files (x86)\TWBS\Versago\Websites\Versago Administration Web Site\Reports.” A number is added in front of the file name to ensure it always unique. If the Crystal Report needs to be modified, you can either modify this file or modify it elsewhere and re-register the new version in Versago.

General information about configuring Crystal Reports for use with Versago and Bizweaver is found here.

B1 Saved Query

The B1 Saved Query option is only available for sites using the SAP Business One business management system. This option provides a method to use queries developed in SAP Business One as a Versago data source.

The database connection (“Database” as described earlier in this document) must include the credentials required to connect to SAP Business One for this option to work. This configuration is described in the Versago – Database Connections Configuration document.

  1. Select the “B1 Saved Query” option.
  2. Click the “Report Data Source” drop-down to see a list of available saved queries from SAP Business One.
  3. Select the desired query.

While this option is available, the preferred approach is to copy the query from Query Manager in SAP Business One and paste it into Versago as a SQL Select statement.

Stored Procedure

In some rare instances it may be necessary to use a SQL Stored Procedure as the data source. This approach is not recommended if any other option is available. However, it is available.

  1. Select the “Stored Procedure” option.
  2. Click the “Report Data Source” drop-down to see a list of available stored procedures in the designated database.
  3. Select the desired procedure.

Keep in mind that if the procedure is changed so that different/additional column names are returned, you must step through the report configuration process again to be sure these changes are accounted for in the “Display” step.

View

The “View” option has been deprecated since a SQL View can be referenced in the SQL Select option.


Home

versago3/dataview_setup.1662565151.txt.gz · Last modified: 2022/09/07 11:39 by dlee