Docs menu

Property reference

Every property of the Time Use control, from its manifest. Inputs set how it looks and loads; outputs and events let a canvas app react to what the user does.

Notes

  • Time range: shift-based choices follow Shifts (JSON) in the user’s time zone. Ranges that reach the future stop at now, so time that hasn’t happened isn’t counted as No data. Custom uses Custom range start and Custom range end.
  • Targets are percentages (90) or fractions (0.9); the defaults are 90%, 85% and 65%.
  • KPI basis says what the three KPIs divide by: Scheduled time (GMG), the default, or Calendar time. See How the measures are worked out.
  • State map (JSON) is for setups without a state-code table: {"states":[{"key":"brk","name":"Breakdown","category":"unplanned"}]}, merged over the built-in underground-mining states.
  • Text size (%) makes every label, value and title bigger or smaller together, from 75 to 200 (default 100). Rows, the machine and summary columns, the axis and the tooltip grow with the text, so nothing overlaps the strips; a label that no longer fits its block shows in the tooltip instead. For a wall display, try 150. Text sizes by role (JSON) is optional, for fine control: sizes in px at 100%, e.g. {"body": 14, "title": 18} (roles: caption, body, label, value, callout, header, title, hero). Text size still applies on top. A typo is ignored rather than breaking the control.
  • Licence key: leave it empty in model-driven apps to use the Ninth Forge licence keys environment variable.

How the measures are worked out

Time Use follows the GMG Time Usage Model (Global Mining Guidelines Group, 2020). Time with no data, and time in codes it doesn’t know (Uncoded), is left out of every measure, so a comms dropout never reads as lost availability. Each KPI card says how much of the calendar was coded.

On the default basis, Scheduled time (GMG), unscheduled time (not required: a rostered day off, a planned shutdown) comes off first:

Level Worked out as
Scheduled time Coded time − unscheduled
Available Scheduled time − planned and unplanned maintenance
Utilised (GMG’s operating time) Available − standby
Direct operating (GMG’s working time) Utilised − operating delays
KPI Formula
Physical availability Available ÷ scheduled time
Use of availability Utilised ÷ available time
Effective utilisation Direct operating ÷ scheduled time

On Calendar time, unscheduled time counts as available and comes off with standby. The first KPI is then called Availability:

KPI Formula
Availability Available ÷ coded time
Use of availability Utilised ÷ available time
Effective utilisation Direct operating ÷ coded time

With no unscheduled time in the range, both bases give the same numbers. The time breakdown follows the same basis: on Scheduled time (GMG), unscheduled time is its first step after coded time.

All properties

PropertyTypeKindWhat it does
DisplayEnumInputReport: the shift report. Editor: a supervisor reviews one shift (suggested codes, re-code, boundaries, change log, approve). Default: report.
Site (editor: approvals and the change log are per site and shift)SingleLine.TextInput
Change log (JSON, canvas editor)MultipleInputCanvas apps: the change-log rows for the site as JSON (ISO times, choice labels). The control keeps the shift on screen, newest first, under the changes made in this session.
Shift approval status (canvas editor)SingleLine.TextInputCanvas apps: the approval rows for the site as JSON (date, shift, status), or Approved or Reopened for the shift on screen. Empty means open.
State modelEnumInputMining (GMG Time Usage Model) or Manufacturing (OEE: availability, performance, and quality when the data has it). Default: gmg.
Good units (OEE, instead of a column)DecimalInput
Total units (OEE, instead of a column)DecimalInput
TitleSingleLine.TextInput
Time rangeEnumInputLast 24 hours (the default) loads one page of events in most fleets; longer ranges load more pages before the report shows. Default: last24.
Custom range startDateAndTime.DateAndTimeInput
Custom range endDateAndTime.DateAndTimeInput
LayoutEnumInput Default: full.
Default modeEnumInput Default: activity.
Focus state code (empty = biggest lost-time reason)SingleLine.TextInput
Shifts (JSON)MultipleInput[{"name":"Day","start":"06:00","hours":12},{"name":"Night","start":"18:00","hours":12}] is the default.
Crew roster (JSON)MultipleInput{"anchor":"2026-10-27","cycle":[{"Day":"A","Night":"C"}, …]}: which crew works which shift, repeating.
State map (JSON, without a states view)MultipleInput{"states":[{"key":"brk","name":"Breakdown","category":"unplanned"}]}, merged over the built-in mining states.
KPI basisEnumInputWhat the KPIs divide by. Scheduled time (GMG), the default: unscheduled time comes off first, as in the GMG Time Usage Model. Calendar time: unscheduled time counts as available. Default: scheduled.
Target availability (%)Whole.None / Decimal / FPInput
Target use of availability (%)Whole.None / Decimal / FPInput
Target effective utilisation (%)Whole.None / Decimal / FPInput
ThemeEnumInput Default: light.
Accent colour (hex)SingleLine.TextInput
Text size (%)Whole.NoneInputMakes every label, value and title bigger or smaller together: 75 to 200, default 100. Rows grow with the text. Default: 100.
Text sizes by role (JSON, optional)SingleLine.TextInputAdvanced: sizes in px at 100%, e.g. {"body": 14, "title": 18}. Roles: caption, body, label, value, callout, header, title, hero. Text size still applies.
Licence keySingleLine.TextInputYour Ninth Forge Time Use licence key. Without one the control works fully and shows a small watermark.
Allow re-codingTwoOptionsInputEnter or double-click an event to give it another state; drag the line between two events (or Alt+arrow keys) to move it; Ctrl+Z undoes. Users still need write access to the table. Default: true.
Save modeEnumInputAuto saves directly in model-driven apps and raises OnRecode in canvas apps. Default: auto.
State code columnSingleLine.TextInputLogical name in the states view. Empty: a column named like code.
State category columnSingleLine.TextInput
State productivity columnSingleLine.TextInput
State colour columnSingleLine.TextInput
State OEE class columnSingleLine.TextInputLogical name in the states view: Running, Reduced speed, Minor stop, Rejects, Down or Planned stop. Empty: a column named like oee, else from the category.
State sort columnSingleLine.TextInput
Machine group columnSingleLine.TextInputLogical name in the machines view. Empty: a column named like fleet or group.
Machine subtitle columnSingleLine.TextInput
Machine sort columnSingleLine.TextInput
Selected event (output)SingleLine.TextOutput
Selection (output, JSON)MultipleOutput
Range start (output)DateAndTime.DateAndTimeOutput
Range end (output)DateAndTime.DateAndTimeOutput
Mode (output)SingleLine.TextOutput
Focused state (output)SingleLine.TextOutput
Editor change (output, JSON)MultipleOutputThe latest editor change: kind, event, original and new values, reason, source and the shift.
Pending changes (output, JSON)MultipleOutputCanvas editor: changes not yet seen in the data, oldest first. Patch them in OnEditorChange.
Last re-code (output, JSON)MultipleOutputJSON. A state change has kind state, id, state and previous. A boundary move has kind boundary, id, end, nextId and nextStart (ISO instants).
Events (required)DatasetBound
Machine (required)SingleLine.Text / OptionSet / Lookup.SimpleColumn
Start (required)DateAndTime.DateAndTimeColumn
End (empty = to the next event)DateAndTime.DateAndTimeColumn
Minutes (instead of an end)Whole.None / Decimal / FPColumn
StateSingleLine.Text / OptionSet / Lookup.SimpleColumn
State code (as received)SingleLine.TextColumn
Source (re-codes set Corrected)SingleLine.Text / OptionSet / Lookup.SimpleColumn
Good units (OEE quality)Whole.None / Decimal / FPColumn
Total units (OEE quality)Whole.None / Decimal / FPColumn
OperatorSingleLine.Text / OptionSet / Lookup.SimpleColumn
LocationSingleLine.Text / OptionSet / Lookup.SimpleColumn
NoteSingleLine.Text / MultipleColumn
States (a view of the state table) (required)DatasetBound
Machines (a view of the machine table) (required)DatasetBound
OnBlockSelectEventEventA block was chosen. Read Self.selection and Self.selectedEventId.
OnEditorChangeEventEventEditor (canvas): a change to save. Read Self.editorChange (or Self.pendingChanges) and Patch the events, the change log and the approval.
OnRecodeEventEventAn event was re-coded or a boundary moved (save mode: event). Read Self.lastRecode and Patch: the state, its code and Source = Corrected; or the end of id and the start of nextId.
OnRangeChangeEventEventThe time range changed. Filter Items to Self.rangeStart and Self.rangeEnd (canvas apps).

Last updated