Using APP Dashboards
TWBS Advanced Productivity Pack (APP) provides tools to create charts from SAP Business One data and present them as either a stand-alone Chart or as an element of a Dashboard.
How To Create an APP Dashboard
Click the SAP menu option titled
Dashboard Setup under the
Administration
Setup
APP Configuration menu groups to load the
Dashboards setup screen.
The form will open in Add mode. The user can click the New icon
if necessary.
Enter the Dashboard Name for the new Dashboard. This will be the name for the dashboard that is displayed to the user.
Select users from the User Defaults drop down list. See the How To Set Up User Defaults for an APP Dashboard section for more information about this feature.
Select the option for the desired orientation of the dashboard…
Full Screen Layout - centered and fills the entire screen.
Horizontal Strip - displayed at the bottom of the screen with the charts placed side-by-side in a horizontal row.
Vertical Strip - displayed on the side of the screen with the charts placed in stacked fashion in a vertical row.
Click the Create button to move to the dashboard layout.
The dashboard layout form is will launch based on the orientation option previously selected.
A new dashboard will always show four chart windows. Click the X to remove an unwanted window. The image below is an example of one of these chart windows.
For each chart window, you must specify the following information…
Frame Type - Designates the type of information to be displayed in the chart window
Unique ID - Unique ID for the chart window.
Chart ID (for Chart option) - Click the drop down menu to select a chart.
User Query (for Grid option) - Click the drop down menu to select a query.
Frame Mode - Mode for the chart window.
The Dashboard can be resized by grabbing and dragging the corners or sides of the form.
The Dashboard windows can be resized by grabbing and dragging the divider between the windows.
How To Edit an APP Dashboard
Click the Update button to make changes to display the Dashboard windows layout.
The windows layout is automatically displayed with four windows, even if the original layout had fewer. Remove any unwanted windows.
Modify the Dashboard information as needed.
How To Delete an APP Dashboard
Once a Dashboard's information has been removed from the system, it cannot be recovered and must be recreated manually.
How To Set Up User Defaults for an APP Dashboard
Click the User Defaults drop down menu to display the available users.
Select the users that you want to assign this Dashboard as the default that will display at time of login to SAP® Business One.
Click the Update button to make changes to display the Dashboard windows layout.
The windows layout is automatically displayed with four windows, even if the original layout had fewer. Remove any unwanted windows.
Modify the Dashboard information as needed.
Query Tips and Tricks for APP Dashboards
SAP® Business One Link To Document Arrows
One of the integration features of SAP® Business One custom queries is the ability to include a “Link To” golden arrow in the results set that allows the user to drill back to the referenced marketing document. In order to accomplish this, there are several key pieces of information that are required in the query to accomplish this link…
The SAP® Document Object Type Reference Guide can be used to identify specific object type values. Refer to the How To Add Link To Arrows for Production Order to TWBS Visual Query Results section of the User Guide.
The Production Order database table (OWOR) does not have a specific ObjType field that contains the value for the Production Order document header record.
Dates
Assume that the current date is May 15, 2010 for the following examples.
Parenthesis () are required since this is a SQL function.
Parsing Dates - Use the SQL datepart function to determine the year, quarter, month, week, and day of a date. The value returned is an integer (number) and can be used in additional calculations.
Select datepart(year,getdate()) returns 2010.
Select datepart(quarter,getdate()) returns 2.
Select datepart(month,getdate()) returns 5.
Select datepart(week,getdate()) returns 21.
Select datepart(day,getdate()) returns 20.
Filtering by Date - The SQL datepart function can also be used to compare dates in order to automatically select a reporting period. In these examples we will use the SAP® Business One Order Header (ORDR) date and the current date of May 15, 2010.
Records where the order date is in the current week
Select t0.docnum, t0.docdate from ORDR where datepart(year,t0.docdate) = datepart(year,getdate()) AND datepart(week,t0.docdate) = datepart(week,getdate())
Records where the order date is in the prior week
Select t0.docnum, t0.docdate from ORDR where datepart(year,t0.docdate) = datepart(year,getdate()) AND datepart(week,t0.docdate) = datepart(week,getdate()) - 1
Records where the order date is in the current quarter
Select t0.docnum, t0.docdate from ORDR where datepart(year,t0.docdate) = datepart(year,getdate()) AND datepart(quarter,t0.docdate) = datepart(quarter,getdate())
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 -Display menus.
the Administration
System Initialization
General Settings menu groups to load the General Settings screen.
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 55.900000 for the column DocTotal rounded to a whole number (56.000000)
Display the database value 55.900000 for the column DocTotal rounded to a whole number (56.000000) and without decimals
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.
When only one dashboard is linked to the screen, the title of that dashboard will display in 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 Dashboards sub-menu off the regular right-click menu below any reports or charts…
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.