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 runningStopwatch 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 removedTime 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
      }
    }
  ]
}



Time Entry Modes

Opqo 24.09.0 adds the ability to configure the time entry modes available to users, when entering time manually.


By default, Opqo presents three entry modes:


Entry ModeDescription
startDateTimeHrsThe user enters the start date, start time and hours. The finish date and finish time are calculated.
finishDateTimeHrsThe user enters the finish date, finish time and hours. The start date and start time are calculated

startFinishDateTime

The user enters the start date, start time, finish date and finish time.  The hours are calculated.



Each of these modes creates labor records with start date, start time, finish date, finish time and hours.  The only difference between these modes is the information the user provides.


Opqo 24.09.0 adds an additional mode that can be configured: 


Entry ModeDescription
startDateHrsThe user enters the start date and hours, and these are the only values that are recorded.  The start time, finish date and finish time are not recorded.


To modify the available time entry modes, add a configuration map to the moduleconfig section of the STAUTOSCRIPT.STAMCONFIG automation script with the following properties:


Property NameValue
moduleWorkDetailTimeTrackerTileModule
entryModesThe available modes are as follows: 
  • startDateTimeHrs
  • finishDateTimeHrs
  • startFinishDateTime
  • startDateHrs

Modes can be entered as either:
  • A single value:  "startDateHrs"
  • A list of values:  ["startDateTimeHrs", "finishDateTimeHrs"]



For example, configure manual time entry to allow only the startDateHrs option, add a module configuration like this:

appConfig = {
  ...
  "moduleconfig": [
    ...
    {
      "module": "WorkDetailTimeTrackerTileModule",
      "entryModes": "startDateHrs"
    }
  ]
}

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",
        "entryModes": "startDateHrs"
      }
    }
  ]
}




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.