Removing time tracking stopwatch


The default time entry widget includes a stopwatch to enable the user to easily mark the start and stop times to be recorded. Manual time entry is also available.


Stopwatch not running
Stopwatch running




Opqo 23.03.0 adds a mechanism for replacing the default time tracking widget with the time entry widget.  This widget is identical in features, but removes the stopwatch. Manual time entry is still available.  Opqo 24.08.0 also adds the ability to remove the time chart altogether.



Stopwatch removed
Time chart removed



To replace the default Time Tracking widget with the Time Entry widget, add a configuration map to the moduleconfig section of the STAUTOSCRIPT.STAMCONFIG automation script with the following properties:



Property NameValue
moduleWorkDetailTimeTrackerTileModule
replaceWithA module definition for WorkDetailTimeEntryTileModule 



The display of the time chart can be controlled using the showChart property in the module definition for the WorkDetailTimeEntryTileModule:


Property NameValue
moduleWorkDetailTimeEntryTileModule
showCharttrue to show the chart, or false to remove it



For example:

appConfig = {
  ...
  "moduleconfig": [
    ...
    {
      "module": "WorkDetailTimeTrackerTileModule",
      "replaceWith": {
        "module": "WorkDetailTimeEntryTileModule",
        "showChart": false        
      }
    }
  ]
}


The module definition for WorkDetailTimeEntryTileModule can also include additional configuration to enable/disable recording for others, as described below.




Enabling/disabling recording for others

Opqo 23.03.0 adds the ability to record time for people other than the logged in user.  This is enabled by default, however it is possible to disable this ability through configuration.


To enable/disable the ability to record time for others, add a configuration map to the moduleconfig section of the STAUTOSCRIPT.STAMCONFIG automation script with the following properties:


Property NameValue
moduleWorkDetailTimeTrackerTileModule
allowLaborSelectiontrue, to enable recording of time for others, or false to disable



For example, to disable the ability to record time for others, add a module configuration like this:

appConfig = {
  ...
  "moduleconfig": [
    ...
    {
      "module": "WorkDetailTimeTrackerTileModule",
      "allowLaborSelection": false
    }
  ]
}

This property is also available for WorkDetailTimeEntryTileModule, if that is configured for use instead of WorkDetailTimeTrackerTileModule.



For example:

appConfig = {
  ...
  "moduleconfig": [
    ...
    {
      "module": "WorkDetailTimeTrackerTileModule",
      "replaceWith": {
        "module": "WorkDetailTimeEntryTileModule",
        "allowLaborSelection": false
      }
    }
  ]
}



Note: For more information on Opqo configuration and the role and contents of the STAUTOSCRIPT.STAMCONFIG script, see the Configuration Overview article.



If you have questions please do not hesitate to contact us or create a support ticket for more assistance.