This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
app:app_how_to_dash [2019/07/25 17:09] dtucker [Query Tips and Tricks for APP Dashboards] |
app:app_how_to_dash [2019/07/25 22:22] (current) |
||
|---|---|---|---|
| Line 139: | Line 139: | ||
| * <color # | * <color # | ||
| * <color # | * <color # | ||
| - | * Filtering by Date -The SQL <color # | + | * Filtering by Date - The SQL <color # |
| + | * Records where the order date is in the current week | ||
| + | * <color # | ||
| + | * Records where the order date is in the prior week | ||
| + | * <color # | ||
| + | * Records where the order date is in the current quarter | ||
| + | * <color # | ||
| - | {{: | + | ==== Numbers ==== |
| - | **Select t0.docnum, t0.docdate from ORDR where datepart(year, | + | The user interface for SAP® Business One displays decimal numeric values based on the <color #22b14c>**Display**</ |
| - | {{:app/image6.jpeg?10x10}} Records where the order date is in the prior week | + | the **<color # |
| - | + | ||
| - | **Select t0.docnum, t0.docdate from ORDR where datepart(year, | + | |
| - | + | ||
| - | {{:app/image6.jpeg?10x10}} Records where the order date is in the current quarter | + | |
| - | + | ||
| - | **Select t0.docnum, t0.docdate from ORDR where datepart(year, | + | |
| - | + | ||
| - | ==== Numbers ==== | + | |
| - | + | ||
| - | The user interface for SAP® Business One displays decimal numeric values based on the **Display** tab setup which can be accessed the SAP menu option for **Display** under the **Administration** -**System Initialization** -**General Settings** | + | |
| However, decimal values are stored in the database to six-decimal precision. This means that a decimal value such as US Dollars that is displayed in SAP® Business One as 100.00 will be retrieved and displayed in the APP Charts as 100.000000. The number of decimals can be controlled by the SQL statement in the query. Combinations of **cast** and **round** can be used to arrive at a reasonable display value. | However, decimal values are stored in the database to six-decimal precision. This means that a decimal value such as US Dollars that is displayed in SAP® Business One as 100.00 will be retrieved and displayed in the APP Charts as 100.000000. The number of decimals can be controlled by the SQL statement in the query. Combinations of **cast** and **round** can be used to arrive at a reasonable display value. | ||
| - | Display the database value 100.000000 for the column DocTotal with 2 decimals (100.00) | + | * Display the database value 100.000000 for the column DocTotal with 2 decimals (100.00) |
| - | + | * <color #ff7f27>**Select cast(t0.DocTotal as decimal(16, | |
| - | **Select cast(t0.DocTotal as decimal(16, | + | |
| - | + | * <color #ff7f27>**Select round(t0.DocTotal, | |
| - | Display the database value 55.900000 for the column DocTotal rounded to a whole number (56.000000) | + | |
| - | + | * <color #ff7f27>**Select cast(round(t0.DocTotal, | |
| - | **Select round(t0.DocTotal, | + | |
| - | + | ||
| - | Display the database value 55.900000 for the column DocTotal rounded to a whole number (56.000000) and without decimals | + | |
| - | + | ||
| - | **Select cast(round(t0.DocTotal, | + | |
| - | + | ||
| + | {{: | ||
| ===== How To Use APP Dashboards ===== | ===== How To Use APP Dashboards ===== | ||
| - | |||
| - | |||
| Once an APP Dashboard has been created it is available for viewing via the right-click menu from the SAP® Business One form that it has been linked to. | Once an APP Dashboard has been created it is available for viewing via the right-click menu from the SAP® Business One form that it has been linked to. | ||
| Line 183: | Line 171: | ||
| {{: | {{: | ||
| - | When more than one dashboard is linked to the screen, the titles of those dashboards will display in a **Dashboards** sub-menu off the regular right-click menu below any reports or charts... | + | When more than one dashboard is linked to the screen, the titles of those dashboards will display in a <color #22b14c>**Dashboards**</ |
| {{: | {{: | ||
| Line 189: | Line 177: | ||
| A specific chart from a dashboard can be accessed by double-clicking on the chart window. This opens the standard APP Chart window for additional use. | A specific chart from a dashboard can be accessed by double-clicking on the chart window. This opens the standard APP Chart window for additional use. | ||
| + | {{: | ||