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:47] dlee |
versago3:form_setup [2023/04/11 11:43] (current) dlee |
||
|---|---|---|---|
| Line 32: | Line 32: | ||
| * Select or name the **Header ** and/or **Detail** table | * Select or name the **Header ** and/or **Detail** table | ||
| - | ==== SQL Query ==== | + | ===== Tables ===== |
| - | When this option is selected, a SELECT SQL statement can be entered manually or pasted from another source such as SQL Server Management Studio. | + | This section of the form set up pages allows to define the columns of the new tables if the **New tables** |
| + | If existing tables are selected, the page displays the selected table structure | ||
| - | {{ :versago3:dv_setup03.png? | + | {{ :versago3:form_setup02.png? |
| - | * Enter the SELECT statement in the “Editor” area. | + | <WRAP center round important 80%> |
| - | * Click [**Execute**] | + | The process described below can only be used to create tables. It cannot |
| - | * 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 | + | |
| - | === SQL Statement Restrictions === | ||
| - | * An **Order By** clause cannot be used except in cases where the statement contains a TOP operator. The ordering (sorting) is handled by the data view's Field Display settings | + | ==== Primary Table ==== |
| - | * **Computed values** in the SQL statement must be assigned an alias. | + | |
| - | ==== B1 Query ==== | + | - **FieldName** is the column name used in the database, not what appears |
| - | + | - The name can use letters, numbers, and the underscore (_) character. Spaces and other special characters are not permitted. | |
| - | This option should only be used with connections | + | |
| - | + | - Use of the Binary | |
| - | ==== Stored Procedure ==== | + | - Date is always created |
| - | + | | |
| - | 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. | + | - **Format** is used for data types of Date and Numeric. |
| - | + | - Date data type | |
| - | Store procedure parameters must be configured in the **// | + | - The Date data type is always created in the database as a DateTime |
| - | ====View==== | + | - Number data type |
| - | + | - Format of Integer is always created in the database as an Integer | |
| - | This option allows the use of a database View as the data source | + | - Format of Decimal is always created in the database as Decimal |
| - | + | - Text data type | |
| - | ==== Crystal Report ==== | + | - Text format is created |
| - | + | - Text(max) is created as nvarchar(max) data type. | |
| - | 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 | + | - **Size** is the number |
| - | + | - For Text fields this is the maximum number of characters that can be entered. | |
| - | <WRAP center round important 80% > | + | - **Precision** indicates the number of decimals for Numeric/Decimal columns. |
| - | The data source used in the Crystal Report definition **must** be the same as that of the Versago Data View connection. | + | |
| - | </ | + | |
| - | + | ||
| - | * Select Crystal Report as the data source | + | |
| - | * 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 to the folder “C: | + | |
| - | + | ||
| - | --- | + | |
| - | =====**Need to review**===== | + | |
| - | + | ||
| - | ===SQL Server=== | + | |
| - | When designing a Crystal Report that will use a __SQL Server__ | + | |
| - | + | ||
| - | ===HANA=== | + | |
| - | When designing a Crystal Report that will us a __HANA__ database | + | |
| - | + | ||
| - | < | + | |
| - | DRIVER={B1CRHPROXY32}; | + | |
| - | </code> | + | |
| - | + | ||
| - | Replace < | + | |
| + | <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: | ||