This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
versago3:form_setup [2022/10/31 10:36] dlee [**Need to review**] |
versago3:form_setup [2023/04/11 11:43] (current) dlee |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Setup ====== | ====== Setup ====== | ||
| - | Basic configuration about the data view is defined on the Setup page. | + | Basic configuration about the form is defined on the Setup page. |
| - | {{ :versago3:dv_setup01.png? | + | {{ :versago3:form_setup01.png? |
| ==== Information ==== | ==== Information ==== | ||
| - | * **Name** is a __unique__ name for this data view. | + | * **Name** is a __unique__ name for this form. |
| * **Title** is displayed in the Versago user menus | * **Title** is displayed in the Versago user menus | ||
| * **Category** is the grouping mechanism used in the default Versago menu structure. | * **Category** is the grouping mechanism used in the default Versago menu structure. | ||
| Line 14: | Line 14: | ||
| * **Description** is an optional internal explanation of the data view. | * **Description** is an optional internal explanation of the data view. | ||
| * **Instruction** is displayed at the top of the user data view page. | * **Instruction** is displayed at the top of the user data view page. | ||
| + | * **Form Type ** defines the structure of the data. | ||
| | | ||
| ==== Availability ==== | ==== Availability ==== | ||
| Line 20: | Line 21: | ||
| * Activate the **Public** option if the data view should be available prior to a user logging in. | * 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. | * 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 | + | * The most common use of this option is when the form is called from a data view using a link. |
| - | + | * Activate | |
| - | ==== Presentation Format ==== | + | |
| - | + | ||
| - | * **List or Chart** format is the default “row & column” presentation. | + | |
| - | | + | |
| - | * The **Schedule** format presents the data view in a calendar. See the **// | + | |
| ==== Connection ==== | ==== Connection ==== | ||
| Line 32: | Line 29: | ||
| * Select the **Connection Name** from the list of configured connections. See the **// | * Select the **Connection Name** from the list of configured connections. See the **// | ||
| * When a connection is selected, the associated database name is displayed to the right. | * When a connection is selected, the associated database name is displayed to the right. | ||
| - | * Select | + | * Select **Existing table ** or **New tables** to store the data. |
| - | + | * Select or name the **Header | |
| - | ===== Data Source Types ===== | + | |
| - | + | ||
| - | {{ : | + | |
| - | + | ||
| - | ==== SQL Query ==== | + | |
| - | + | ||
| - | When this option is selected, a SELECT SQL statement can be entered manually | + | |
| - | + | ||
| - | {{ : | + | |
| - | + | ||
| - | | + | |
| - | | + | |
| - | * 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 === | + | |
| - | + | ||
| - | | + | |
| - | * **Computed values** in the SQL statement must be assigned an alias. | + | |
| - | + | ||
| - | ==== B1 Query ==== | + | |
| - | + | ||
| - | This option should only be used with connections to SAP Business One. This option allows to select user queries built in SAP Business One. | + | |
| - | + | ||
| - | ==== Stored Procedure ==== | + | |
| - | + | ||
| - | In some rare instances it may be necessary to use an SQL Stored Procedure as the data source. This approach is not recommended if any other option is available. | + | |
| - | + | ||
| - | Store procedure parameters must be configured in the **// | + | |
| - | ====View==== | + | |
| - | + | ||
| - | This option allows the use of a database View as the data source | + | |
| - | + | ||
| - | ==== Crystal Report ==== | + | |
| - | + | ||
| - | A Data View can be configured to display a Crystal Report. When this option is selected, the Crystal Report definition file is uploaded to the Versago site and used as the presentation method. | + | |
| - | + | ||
| - | <WRAP center round important 80% > | + | |
| - | The data source used in the Crystal Report definition | + | |
| - | </ | + | |
| - | * Select Crystal Report as the data source type. | + | ===== Tables ===== |
| - | * A dialog box is presented where a Crystal Report definition file (.RPT) can be selected. | + | |
| - | The Crystal Report source file is copied from the original location | + | This section of the form set up pages allows |
| + | If existing tables are selected, the page displays the selected table structure | ||
| - | --- | + | {{ : |
| - | =====**Need to review**===== | + | |
| - | ===SQL Server=== | + | <WRAP center round important 80%> |
| - | When designing a Crystal Report that will use a __SQL Server__ database as its data source, the report connection type must be **OLE DB (ADO)**. This connection type has three options for the data provider: **SQL Native Client**, **Microsoft OLE DB Driver for SQL Server**, and **Microsoft OLE DB Provider for SQL Server**. | + | The process described below can only be used to create tables. It cannot be used to modify an existing table. This must be done directly in SQL. |
| + | </ | ||
| - | ===HANA=== | ||
| - | When designing a Crystal Report that will us a __HANA__ database as its data source, the report connection type be **ODBC (RDO)**. | ||
| - | < | + | ==== Primary Table ==== |
| - | DRIVER={B1CRHPROXY32}; | + | |
| - | </ | + | |
| - | Replace < | + | - **FieldName** is the column name used in the database, not what appears to the user on the form |
| + | - The name can use letters, numbers, | ||
| + | - **Data Type** is selected from the drop-down option list. | ||
| + | - Use of the Binary option is not supported in Versago Forms (v2) and should not be used. | ||
| + | - Date is always created in the database as a DateTime data type. | ||
| + | - The data type for Number is set based on the Format (below). | ||
| + | - **Format** is used for data types of Date and Numeric. | ||
| + | - Date data type | ||
| + | - The Date data type is always created in the database as a DateTime data type, irrespective of format. | ||
| + | - Number data type | ||
| + | - Format of Integer is always created in the database as an Integer (whole number) data type. | ||
| + | - Format of Decimal is always created in the database as Decimal data type. | ||
| + | - Text data type | ||
| + | - Text format is created as nvarchar data type. | ||
| + | - Text(max) is created as nvarchar(max) data type. | ||
| + | - **Size** is the number of characters of the column in the database. | ||
| + | - For Text fields this is the maximum number of characters that can be entered. | ||
| + | - **Precision** indicates | ||
| + | <WRAP center round important 80%> | ||
| + | One field must be selected as the **Primary Field**. This field is used by Versago to identify each unique record. | ||
| + | </ | ||
| + | ==== Recommended fields ==== | ||
| + | We recommend the creation of the following fields using the shown naming convention. | ||
| + | ^Field Name | ||
| + | |vgoRecNum | ||
| + | |vgoCreatedBy | ||
| + | |vgoCreateDate | ||
| + | |vgoCreatedById | ||
| + | |vgoLastModifiedBy | ||
| + | |vgoLastModifiedDate|Date an existing record is modified | ||
| + | |vgoLastModifiedById|Versago User ID of user modifying an existing record | ||
| + | |vgoProcessStatus | ||
| + | |vgoProcessDate | ||
| + | |vgoLinkID | ||
| + | |vgoLinkDate | ||
| + | | | ||
| + | ===== Detail Table ===== | ||
| + | A detail table is only used when the form type is Header/ | ||
| + | <WRAP center round important 80%> | ||
| + | The detail table cannot have a **Primary Key**. This is an important consideration when using existing tables. | ||
| + | </ | ||
| ---- | ---- | ||
| **[[versago3: | **[[versago3: | ||