Skip to content

This pattern is for builders whose records come in “one and many” pairs: a product and the support tickets raised about it, a request and its line items, a job and its applications. Read it after My First Application and Model your data well.

One record (the master) is related to many others (the details). People want to open the master and see its details, add a detail without retyping the master’s data, and report on the details later. Get the shape wrong and you either copy the master’s data into every detail by hand, or bury records that need their own process inside a form where nothing else can reach them.

OSOS gives you two ways to build it:

Separate detail entityRepeatable Block
What it isA second entity whose records point at the master with a Reference field; the master lists them through an Incoming relationRows of fields stored inside the master record itself
Each detail has its ownWorkflow, views, access, history, reactions, reportsNothing of its own — it is part of the master
Listed or counted across all mastersYes — it is an ordinary entityOnly through each master
Typical sizeAny numberA handful of rows per master

Choose a separate detail entity when any of these is true:

  • the detail goes through its own approval or status (a ticket, an application);
  • other people should see or change the detail but not the master, or the reverse;
  • you will report on details across masters (“all tickets for a product category this month”);
  • the detail is referred to from elsewhere, or can exist before it is linked.

Choose a repeatable Block when the rows are pure line items that live and die with the master: the items of one request, the phone numbers of one contact, the scores of one evaluation. They are filled in on the same form, at the same time, by the same people.

  1. Create both entities in the same module — Administration › Applications › Data Entities › Add Data Entity. See Create and design an entity.
  2. Open the detail entity’s designer (three dots on the entity card › Edit Entity) and, on the Structure tab, add a Reference field that points at the master entity. Make it Required if a detail must always have a master.
  3. If the detail should show some of the master’s values — a product’s category, say — add a Mapped field that follows the reference and choose its Update Mode deliberately: From Parent Only to always match the master, Never to keep the value as it was. See Copy values with a mapped field.
  4. Open the master entity, select its Relations tab and select Add Relation. Choose Relation Type Incoming, the detail entity, and the reference field from step 2. Save.
  5. In the master’s view, turn on Entries details and, under Relations, add the relation. Choose Display as (Tab, Sub View or Field), the View the details are shown with, and Open entry as. See Design the record’s details.
  6. Save and publish the views, then add a detail with a test user to check the relation fills in.
  1. In the master’s designer, on the Structure tab, drag a Block onto the canvas and drag the row’s fields into it.
  2. Open the block’s Field Settings and, under Value Settings, turn on Repeatable. Optionally set Min and Max rows.
  3. Choose a Display Layouts option, and tick Display as tab if the rows make the form long.
  4. Select Save.

Rows keep their own identity when people delete or reorder them Since 1.10, and reactions can add, change or remove one row with the Create / Update / Delete Repeatable Block Record actions. See Block field.

Worked example: products and support tickets

Section titled “Worked example: products and support tickets”

The Customer Support tutorial keeps everything about a ticket in one entity, Support Tickets. Two of its fields are Blocks: Solution (one field, Solution) and Service evaluation (Evaluation score and Comment). Each is filled in once per ticket, at one workflow step, and never needs a life of its own — Blocks are the right choice. (They are single blocks; a Block needs Repeatable only when one record holds several rows.)

Now extend it the way the ACD — Certified Developer course does: support wants to know which product each ticket is about, and to see every ticket of a product.

  1. Add a Products entity with Product name and Product category.
  2. On Support Tickets, add a Reference field Product pointing at Products.
  3. Add a Mapped field Product category that follows Product, with From Parent Only, so the desk can filter tickets by category without typing it.
  4. On Products, add an Incoming relation Tickets through the Product field, and show it as a Tab in the products view.

Tickets stay a separate entity because each one has its own five-step workflow, its own owners and its own notifications. A Block could carry none of that.

The Recruitment tutorial makes the same choice the other way round: a job application’s Vacancy is a Reference to the Jobs entity — jobs have their own review workflow — while the Interview L1 and First task details blocks live inside the application.

  • A repeatable Block for things that need their own approval or report. Rows of a Block have no workflow, no owner and no view of their own, so you cannot route one row for approval or list all rows across masters. Make them a detail entity.
  • A master holding a hand-maintained list of its details. A multi-value Reference on the master that someone updates whenever a detail is added goes stale at the first forgotten edit. Put the reference on the detail and show the details through an Incoming relation — it is always current.
  • Copying master values into each detail by hand. Typing the product’s category on every ticket invites typos and drift. Use a Mapped field and pick the update mode.
  • A detail in another module, referenced directly. A reference across modules ties the two modules together for packaging and deletion. Keep master and detail in one module, or reach the other module’s data through a proxy entity — see Virtual entities.

Platform 1.10.0 · Backend 1.11.0-alpha.11 · Frontend 1.11.0-alpha.6 · Mobile 1.10.2 · Chart 1.11.8 · Gateway 2.6.11 · MCP 0.2.0 · Grafana DS 1.2.0Docs build 2026-11-27