This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
versago3:dataview_setup [2022/09/07 12:04] dlee |
versago3:dataview_setup [2023/07/14 12:38] (current) dlee [Stored Procedure] |
||
|---|---|---|---|
| Line 49: | Line 49: | ||
| * If the statement is correct, the first 50 records of the dataset are displayed in the “Results” area. | * If the statement is correct, the first 50 records of the dataset are displayed in the “Results” area. | ||
| - | ===SQL Statement Restrictions=== | + | === 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 | * 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 | ||
| * **Computed values** in the SQL statement must be assigned an alias. | * **Computed values** in the SQL statement must be assigned an alias. | ||
| - | ====B1 Query==== | + | ==== 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. | 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==== | + | ==== 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. | 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. | ||
| - | =====View===== | + | Store procedure parameters must be configured in the **// |
| + | |||
| + | |||
| + | <WRAP center round important 100% > | ||
| + | **Stored Procedure Limitations** | ||
| + | </ | ||
| + | Versago uses the view sys.dm_exec_describe_first_result_set_for_object to determine the store procedure' | ||
| + | However, there are limitations with the system view that restricts the use of some store procedures in Versago. | ||
| + | The limitations include the use of temp tables and dynamic sql in the store procedure. | ||
| + | |||
| + | Use the following query to determine if your store procedure will be suitable to be used as a Versago data source: | ||
| + | |||
| + | < | ||
| + | SELECT name, system_type_name | ||
| + | FROM sys.dm_exec_describe_first_result_set_for_object(OBJECT_ID(@StoredProcedureName), | ||
| + | </ | ||
| + | |||
| + | |||
| + | ====View==== | ||
| This option allows the use of a database View as the data source | This option allows the use of a database View as the data source | ||
| | | ||
| - | ===== Crystal Report | + | ==== 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. | + | A Data View can be configured to display a Crystal Report. |
| - | - Select | + | <WRAP center round important 80% > |
| - | - A dialog box is presented to select the desired Crystal Report. | + | The data source used in the Crystal Report |
| + | </ | ||
| - | {{ : | + | * Select Crystal Report as the data source type. |
| + | * A dialog box is presented where a Crystal Report definition file (.RPT) can be selected. | ||
| - | - Click [**Choose File**] | + | The Crystal Report source file is copied from the original location |
| - | - Locate and “open” the desired Crystal Reports file (.RPT). | + | |
| - | - The file name is displayed in the Versago dialog. | + | |
| - | - Click [**Select**] to associate | + | |
| - | | + | |
| - | {{ : | + | --- |
| + | =====**Need to review**===== | ||
| - | The Crystal Report source | + | ===SQL Server=== |
| + | When designing a Crystal Report | ||
| - | <WRAP center round tip 80%> | + | ===HANA=== |
| - | General information about configuring | + | When designing a Crystal |
| - | </WRAP> | + | |
| + | < | ||
| + | DRIVER={B1CRHPROXY32}; | ||
| + | </code> | ||
| + | Replace < | ||
| Line 95: | Line 117: | ||
| ---- | ---- | ||
| + | **[[versago3: | ||
| **[[versago3: | **[[versago3: | ||
| | | ||