Prerequisites
Minimum Version: Requires SysTrack 11.8 or later.
Notes
After this DEX Pack is installed, it may take up to 24 hours for data to appear.
If you update or reinstall this DEX Pack, you must reassign any Views created below to the SF_Employee Wellbeing Role.
Installation Steps
To install this DEX Pack, complete the following steps:
Assign the Healthy Working View to the Employee Wellbeing Role.
Assign the Employee Wellbeing Role to Relevant Configurations.
Import the Kit
There are two ways to import the DEX Pack to SysTrack:
Import the pack directly from the Kits page in SysTrack. See the Import Online Kits guide for more information.
Import a local file downloaded from the DEX and Kit Downloads page. Click the Download Kit link for the pack and follow the Import Local Kits guide to finish the import.
Create the Healthy Working View
The Healthy Working Dashboard requires you to make a View for the SF_Employee Wellbeing Role.
To create the new View:
Navigate to Configure > Views.
Click the padlock icon in the upper-right to enable editing.
Click the plus icon to add a new View.
Fill in the Settings as follows:
View Name: SF_USERSDAILY
Expires in: 30 Days
Existing Category: Custom
NOTE: If the existing Category does not contain Custom, create a new category for Custom in the New Category text box.
When Expired: Append Data
Do NOT check When overdue by 1 day(s).
Set the Refresh drop-downs to Daily, Inside, 24x7, and Every Day.
Copy the SF_USERSDAILY SQL Query, and paste it into the box under SQL Selection > Generic.
Click Test SQL. A Success message should appear at the top of the screen. If the test is not successful, the query may have been copied incorrectly.
Click Create View at the top-right.
SF_USERSDAILY SQL Query
SELECT
WGUID,
GETUTCDATE() AS VWTIME,
UNAME,
DOTY,
ACTIVE_TIME,
SUM_BREAK_TIME,
MAX_BREAK_TIME
FROM (
SELECT
T0.WGUID,
GETUTCDATE() AS VWTIME,
S0.STRVALUE AS UNAME,
DATEADD(D,DATEDIFF(D,0,T0.WTIME),0) AS DOTY,
COUNT(*) * 10 AS ACTIVE_TIME,
SUM(CASE WHEN DATEDIFF(N,PREVIOUS_TIME,WTIME) BETWEEN 15 AND 180 THEN DATEDIFF(N,PREVIOUS_TIME,WTIME) ELSE 0 END) AS SUM_BREAK_TIME,
MAX(CASE WHEN DATEDIFF(N,PREVIOUS_TIME,WTIME) BETWEEN 15 AND 180 THEN DATEDIFF(N,PREVIOUS_TIME,WTIME) ELSE 0 END) AS MAX_BREAK_TIME
FROM (
SELECT
T0.WGUID,
T0.WTIME,
T0.ACCOUNT_ID,
MAX(T1.WTIME) AS PREVIOUS_TIME
FROM (
SELECT
T0.WGUID,
T0.WTIME,
T0.ACCOUNT_ID
FROM SASYSUSERS AS T0
INNER JOIN (
SELECT ACCOUNT_ID
FROM SAAPP
WHERE SYSACCOUNT = 0
GROUP BY ACCOUNT_ID
HAVING SUM(FOCUS_TIME) > 0
) AS T1 ON T0.ACCOUNT_ID = T1.ACCOUNT_ID
WHERE
WTYPE = 1
AND WUSAGE = 3
) AS T0
LEFT JOIN (
SELECT
T0.WTIME,
T0.ACCOUNT_ID
FROM SASYSUSERS AS T0
INNER JOIN (
SELECT ACCOUNT_ID
FROM SAAPP
WHERE SYSACCOUNT = 0
GROUP BY ACCOUNT_ID
HAVING SUM(FOCUS_TIME) > 0
) AS T1 ON T0.ACCOUNT_ID = T1.ACCOUNT_ID
WHERE
WTYPE = 1
AND WUSAGE = 3
) AS T1 ON T0.WTIME > T1.WTIME AND T0.ACCOUNT_ID = T1.ACCOUNT_ID
GROUP BY
T0.WGUID,
T0.WTIME,
T0.ACCOUNT_ID
) AS T0
INNER JOIN SASTRUSER AS S0 ON T0.ACCOUNT_ID = S0.STRINGID
GROUP BY
T0.WGUID,
S0.STRVALUE,
DATEADD(D,DATEDIFF(D,0,T0.WTIME),0)
) AS T0
WHERE
DATEDIFF(D, DOTY, <LASTREFRESHTIME>) <= 0
AND DATEDIFF(D, DOTY, GETUTCDATE()) > 0Assign the Healthy Working View to the Employee Wellbeing Role
To assign the new View:
Navigate to Configure > Roles.
Use the drop-down at the top to select the SF_Employee Wellbeing Role.
Click Views, then check the box next to SF_USERSDAILY.
Click Save Changes at the top-right.
After this View is assigned, Screen Time data will be collected each day. It will take 30 days before the data in this Dashboard is fully populated.
Assign the Employee Wellbeing Role to Relevant Configurations
The Employee Wellbeing DEX Pack requires you to assign the SF_Employee Wellbeing Role to the relevant Configurations:
Navigate to Configure > Configurations.
Click the padlock icon in the upper-right to enable editing.
Use the drop-down at the top to select a relevant Configuration, or create a new Configuration.
Assign the SF_Employee Wellbeing Role to the Configuration by dragging it from Available Roles to Assigned Roles
Click Save Changes at the top-right.
Repeat this process for any other relevant Configurations.
Configure the Security Role
Due to the sensitive nature of the data in this DEX Pack, only specific users can view it. By default, the Employee Wellbeing Security Role is applied. With this Security Role, only users with Dashboard Builder access can view this DEX Pack.
To edit the users who can view this DEX Pack:
Open Dashboard Builder.
Click the key icon in the top-left.
Click Employee Wellbeing Security Role.
Use the Role Membership pane to add or remove users as needed. You can add individual users or dynamic groups of users.