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
| Property | Type | Kind | What it does |
|---|---|---|---|
| Display | Enum | Input | Report: 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.Text | Input | |
| Change log (JSON, canvas editor) | Multiple | Input | Canvas 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.Text | Input | Canvas 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 model | Enum | Input | Mining (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) | Decimal | Input | |
| Total units (OEE, instead of a column) | Decimal | Input | |
| Title | SingleLine.Text | Input | |
| Time range | Enum | Input | Last 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 start | DateAndTime.DateAndTime | Input | |
| Custom range end | DateAndTime.DateAndTime | Input | |
| Layout | Enum | Input | Default: full. |
| Default mode | Enum | Input | Default: activity. |
| Focus state code (empty = biggest lost-time reason) | SingleLine.Text | Input | |
| Shifts (JSON) | Multiple | Input | [{"name":"Day","start":"06:00","hours":12},{"name":"Night","start":"18:00","hours":12}] is the default. |
| Crew roster (JSON) | Multiple | Input | {"anchor":"2026-10-27","cycle":[{"Day":"A","Night":"C"}, …]}: which crew works which shift, repeating. |
| State map (JSON, without a states view) | Multiple | Input | {"states":[{"key":"brk","name":"Breakdown","category":"unplanned"}]}, merged over the built-in mining states. |
| KPI basis | Enum | Input | What 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 / FP | Input | |
| Target use of availability (%) | Whole.None / Decimal / FP | Input | |
| Target effective utilisation (%) | Whole.None / Decimal / FP | Input | |
| Theme | Enum | Input | Default: light. |
| Accent colour (hex) | SingleLine.Text | Input | |
| Text size (%) | Whole.None | Input | Makes 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.Text | Input | Advanced: 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 key | SingleLine.Text | Input | Your Ninth Forge Time Use licence key. Without one the control works fully and shows a small watermark. |
| Allow re-coding | TwoOptions | Input | Enter 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 mode | Enum | Input | Auto saves directly in model-driven apps and raises OnRecode in canvas apps. Default: auto. |
| State code column | SingleLine.Text | Input | Logical name in the states view. Empty: a column named like code. |
| State category column | SingleLine.Text | Input | |
| State productivity column | SingleLine.Text | Input | |
| State colour column | SingleLine.Text | Input | |
| State OEE class column | SingleLine.Text | Input | Logical 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 column | SingleLine.Text | Input | |
| Machine group column | SingleLine.Text | Input | Logical name in the machines view. Empty: a column named like fleet or group. |
| Machine subtitle column | SingleLine.Text | Input | |
| Machine sort column | SingleLine.Text | Input | |
| Selected event (output) | SingleLine.Text | Output | |
| Selection (output, JSON) | Multiple | Output | |
| Range start (output) | DateAndTime.DateAndTime | Output | |
| Range end (output) | DateAndTime.DateAndTime | Output | |
| Mode (output) | SingleLine.Text | Output | |
| Focused state (output) | SingleLine.Text | Output | |
| Editor change (output, JSON) | Multiple | Output | The latest editor change: kind, event, original and new values, reason, source and the shift. |
| Pending changes (output, JSON) | Multiple | Output | Canvas editor: changes not yet seen in the data, oldest first. Patch them in OnEditorChange. |
| Last re-code (output, JSON) | Multiple | Output | JSON. 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) | Dataset | Bound | |
| Machine (required) | SingleLine.Text / OptionSet / Lookup.Simple | Column | |
| Start (required) | DateAndTime.DateAndTime | Column | |
| End (empty = to the next event) | DateAndTime.DateAndTime | Column | |
| Minutes (instead of an end) | Whole.None / Decimal / FP | Column | |
| State | SingleLine.Text / OptionSet / Lookup.Simple | Column | |
| State code (as received) | SingleLine.Text | Column | |
| Source (re-codes set Corrected) | SingleLine.Text / OptionSet / Lookup.Simple | Column | |
| Good units (OEE quality) | Whole.None / Decimal / FP | Column | |
| Total units (OEE quality) | Whole.None / Decimal / FP | Column | |
| Operator | SingleLine.Text / OptionSet / Lookup.Simple | Column | |
| Location | SingleLine.Text / OptionSet / Lookup.Simple | Column | |
| Note | SingleLine.Text / Multiple | Column | |
| States (a view of the state table) (required) | Dataset | Bound | |
| Machines (a view of the machine table) (required) | Dataset | Bound | |
| OnBlockSelect | Event | Event | A block was chosen. Read Self.selection and Self.selectedEventId. |
| OnEditorChange | Event | Event | Editor (canvas): a change to save. Read Self.editorChange (or Self.pendingChanges) and Patch the events, the change log and the approval. |
| OnRecode | Event | Event | An 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. |
| OnRangeChange | Event | Event | The time range changed. Filter Items to Self.rangeStart and Self.rangeEnd (canvas apps). |
Last updated