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.


Opqo 23.03.0 adds a simple mechanism for replacing the default time tracking widget with the time entry widget.  This widget it identical in features, but removes the stopwatch. Manual time entry is still available.


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 


For example:


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

The module definition for WorkDetailTimeEntryTileModule can include additional configuration options, such as enabling/disabling 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 issue materials, 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.