Docs menu

Model-driven apps

Put Time Use on a view of your events table, map the machine, start, end and state columns, and point it at your state-code and machine views. It loads only the events in the chosen time range, works in each user’s Dataverse time zone, and saves corrections straight to the events.

What your tables need

Table Columns
Events (required) Machine (a lookup, or text), Start (date and time), End (date and time; empty means it runs to the machine’s next event), State (a lookup to your state codes, a choice or text) and, if you keep it, the code as received. Optional: source, operator, location, note.
State codes (recommended) Code, category (one of: Direct operating, Operating delay, Standby, Unscheduled, Unplanned maintenance, Planned maintenance), optional productivity (Productive, Non-productive, Down), colour and sort order.
Machines (optional) Fleet (the group), subtitle, sort order. Without it, machines come from the events.

Start and end can be User local or Time zone independent date-time columns. Time-zone-independent times are read as the site’s wall clock in each user’s Dataverse time zone, so set supervisors’ time zone to the site’s. An event whose code isn’t in the state-code table shows as Uncoded (code …) and is counted, never dropped.

Add the control to a view

  1. In your solution, open the events table’s view (or create one with the columns above), then Components, Get more components, and add Ninth Forge Time Use.
  2. Map Machine and Start (required), and End, State, State code, Source, Operator, Location and Note if you have them.
  3. Point States at a view of your state-code table and Machines at a view of your machine table. Columns are found by name (code, category, colour, fleet, sort order…); set the …Column properties if yours are named differently.
  4. Choose a Time range (current shift, last shift, today, last 24 hours, last 7 days) and the Layout (the timeline alone, or with the Pareto, breakdown and KPIs). Save and publish.

Shifts and crews

The default shifts are Day from 06:00 and Night from 18:00, 12 hours each. Set Shifts (JSON) for your pattern, e.g. [{"name":"Day","start":"07:00","hours":10},{"name":"Night","start":"19:00","hours":14}], and Crew roster (JSON) to show which crew worked each shift.

Correcting events

Users with write access to the events table can make the corrections below. Saving them needs a Time Use key: without one, everything shows, but each change snaps back (see Without a key).

  • Re-code an event: zoom in until single events show, then double-click one, or select it and press Enter. On a busy machine at the default zoom, a block can hold several events, and the control says “Zoom in to re-code one event”. Type to filter the state codes, choose one, and the state, the code and Source = Corrected are saved. If the event’s name mentions the old state (e.g. “TR03 · Breakdown · 29 Oct 15:14”), the name changes too. A code that isn’t in your state-code table is saved as the code, with the State lookup left empty, and shows as Uncoded until you add it.
  • Move a boundary: drag the line between two events, or select an event and press Alt+← or Alt+→ (Shift for five minutes). The end of one and the start of the next are saved together.
  • Undo: Ctrl+Z (Ctrl+Y redoes), or Undo on the message that confirms each change. Undoing back to the original state also puts the original Source back.

Turn Allow re-coding off for a read-only report.

The editor: review and approve a shift

Set Display to Editor (and Site to the site’s name) for a supervisor’s review of one shift, the last completed one by default; ‹ and › move to the shift before or after.

  • To review lists every uncoded stretch and every gap in the data, each with a suggested code and why: Same state either side, Before loading: Queuing (or Before running: Changeover on a manufacturing line), or Most common state on this asset. Suggestions are never applied on their own: choose Code as… or Fill as…, or pick another state.
  • Selected event: its start, end and duration, Move end by five minutes, Re-code as any state, and a reason kept in the change log.
  • Change log: every change is saved with the original and new state and times, the reason, whether it was a suggestion, who and when. Filled gaps become new events with Source = Manual.
  • Approve shift is available once nothing is left to review. Approving locks the shift for reporting; any later change reopens it and says so in the log.

The editor saves to two tables that come with the solution: Time Use Change (nf_tuchange) and Time Use Shift Approval (nf_tushiftapproval). The solution includes a Time Use Supervisor security role with create, read and write on both tables. Give it to supervisors with Basic User, and add Write on your events table to it (or to another role they have). Users who can’t write to the events table see the shift report instead.

Manufacturing (OEE)

Set State model to Manufacturing · OEE. Without a states view the control uses its built-in manufacturing states (running, reduced speed, rejects / start-up scrap, minor stops, changeover, waiting on material, cleaning, breakdown, planned maintenance, planned stop). With your own state-code table, add an OEE class column (Running, Reduced speed, Minor stop, Rejects, Down or Planned stop); without one, each state takes a class from its category. For quality from units, map Good units and Total units on the events (summed over the events that start in the range), or set the two fixed numbers.

The Manufacturing · OEE state model counts planned stops (breaks, no orders) outside planned production time, then shows availability (run time ÷ planned production time) and performance (net run time ÷ run time). Quality and OEE (A × P × Q) appear only when the data says something about quality: good and total counts, or time coded as Running, rejects / start-up scrap.

Last updated