Skip to content

Commit 6b51822

Browse files
fix(ui): the entry form draws a group-placed master-detail table at its field group (#36009)
<!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuFchBCV6Umg5wxjoKhT7QkV)_ repo:objectstack#1 · os-sales · session_01L6bhgXUMw7b8gUmNsyoXHR Fixes #35889 Slice S2 of #35889 (S1 = #35921, merged as f3c9d42). Claim 7057842463. Area b1-R2. ## 维护者速读 - **用户看到的变化**:主对象的字段分组指定了主从子表(例如报销单的「Expense Lines」分组排在「Report」和「Totals」之间)时,新建和编辑表单里这张明细表现在就出现在这个分组的位置,和记录页一致;以前(S1)它总是排在所有字段的最下面。 - **分组导航条**:表单顶部按分组跳转的导航条,现在也在明细表这一站停(例如 Report / Expense Lines / Totals)。 - **分页签表单**:明细表在分组的位置单独成一个页签,页签名用分组的名字。**向导表单**:主从向导本来就按简单表单画,跟简单表单一样放到分组位置。 - **不变的**:没有分组指定的子表(表单视图自己写的 subforms)、以及 sections 跟字段分组对不上的表单,明细表照旧在最下面;主记录和明细一次保存、合计在表单底部、展开一行的编辑框跟着明细表走。不改任何元数据写法。 - 本 PR 收尾 #35889(`Fixes`)。 ## What changes A master-detail collection that a field group of the parent places (`fieldGroups[].relatedList`) is now drawn at that group in the parent's create and edit forms, where the record page draws it, instead of below every field of the record. - **Form slots** (`ui/packages/plugin-form/src/formSlots.ts`, new). `MasterDetailForm` hands its header `ObjectForm` a runtime-only list of its collections (package-local hand-off type, not on the `ObjectFormSchema` authoring face). `placeFormSlots` lays them out among the form's sections by the record page's rule (`bodyTablePlacement`): after the sections of the groups declared before the placing group, before those declared after it; a section that names no declared group (the ungrouped bucket) counts as after every group. A layout none of whose sections names a declared group places nothing. - **Simple form** (`ObjectForm.tsx`): each placed collection becomes a `form-slot` row in the one field list, between the sections. The form renderer (`ui/packages/components/src/renderers/form/form.tsx`) draws that row as an empty full-width element; no new export. - **The slot's controls are not the header form's**: the slot element sits inside the header's `<form>`, so `FormSlotPlacement` wraps the portaled collection in a form of its own (`noValidate`, a disabled hidden default button, submit prevented). The header's `requestSubmit()` then validates only its own fields (a line cell's bad input never blocks Save with a browser bubble), a line button without a `type` (the shared `Button` sets none) never submits the header, and Enter in a line cell submits nothing: the lines behave as they did below the form, owned by no header form. The renderer's reveal of an errored field (`fieldWrapper`) skips what a host drew into this form's slot rows, while an editor inside a slot still finds its own fields. - **Section bar**: a slot row carries its group's (translated) label, once per group, and the form renderer reports a labelled slot to the host's section navigation (`FormSectionNavContext`, #34605) between the headings around it, with the slot element as its anchor. An unlabelled slot is no stop. - **Tabbed form** (`TabbedForm.tsx`): a placed collection is a tab of its own at its group's position, labelled with the group's (translated) label. A master-detail wizard is already drawn as the simple form (`ObjectForm`'s master-detail route), so it places the same way. - **The collection is drawn by `MasterDetailForm`** into the slot through a portal (`FormSlotPlacement`, a `FormSlotStore` per form in a ref), so the lines stay out of the header's React tree: a header keystroke still never re-renders them and they never re-render the header. The header reports which collections its drawn layout claims (never while it is loading), so a collection no layout claims stays in its old place below the fields, and a remounting header (after a create) does not make the lines jump below and back. An expanded row's editor opens in the same slot, beside its collection. The header scrape for the lines' `parent.*` rules skips the slot's inputs. The document totals stay at the foot of the form. - **Texts S1 left** ("below the record's fields until the form places it at the group"): `ObjectFieldGroupSchema.relatedList` describe and jsdoc, `FieldSchema.relatedList` jsdoc, the `related-list-body-table.ts` header and its describe pin, the regenerated `content/docs/references/data/object.mdx`, the acceptance line of migration entry `semantic/18.master-detail-related-list-tab-by-default`, and S1's changeset line. **ADR-0035**: one add-only note after the third note; S1's sentences are left as written (the note says which one it supersedes). - `object.form.ts`'s group help ("The parent's create and edit forms inline the table too …") makes no position claim, so it is unchanged and its bundles are not regenerated. ## Why Card #35889, acceptance line 2: 「同一个对象,加一个指向这张子表的分组并排在第二位:记录页字段区的第二个分组位置出现这张表;新建、编辑表单同一位置出现;页签里仍有它。」 S1 delivered the record page half; this delivers the form half, as agreed in the split. ## Verification Head 97afed5: main merged in after #35984 landed (three keep-both hunks in `MasterDetailForm.tsx`, nothing else). The reviews below were read at 84dc199. On the merged tree, `tsc` in plugin-form is clean and the plugin-form + form-renderer suites pass (332 files, 3354 passed / 18 skipped). - **Form ownership (L1-c should-fix)**: a DOM pin asserts every control in the slot has a form other than the header's and clicking each line button fires no header `submit` (red without the wrapper); `form-invalid-scroll.test.tsx` pins that the reveal of an errored field lands on the form's own field, not a same-named field drawn into a slot (red without the filter). Real browser (`owner-check.cjs`): 12 slot controls, 0 owned by the header; Enter in a cell and Add line make no header submit and no write; with letters in a line's Amount cell (`validity.badInput`), Create reaches the app's own check ("Amount is required", bad cells marked) with no browser bubble. Suites after the fix: 331 files, 3343 passed / 18 skipped; `tsc` clean in plugin-form and components. - **New pins (13)**: `formSlots.test.ts` (placement order, a group declared last, entry reading, nothing placed, slot store), `MasterDetailForm.groupPlacement-35889.test.tsx` (simple form between the groups around its group, an unplaced collection below the form, placed last, edit mode with loaded lines at the group and drawn once, save batch, tabbed form tab order with the collection in its tab), and one case in `form-section-nav-34605.test.tsx` (a labelled slot is a section-bar stop between the headings, an unlabelled one is not). - **Ablation**: dropping the placement (the header claims nothing) turns 4 of the DOM pins red; dropping the slot from the section-bar report turns the nav pin red. Restored, green. - **Suites**: `vitest run packages/plugin-form packages/components/src/renderers/form` 331 files, 3335 passed / 18 skipped; after merging main, `FormSectionNav` (#35988) + `ModalForm` + the new pins 8 files / 63 passed. `packages/spec` tests green; `check:generated` clean after the object.mdx regeneration. - **Static**: `tsc --noEmit` clean in plugin-form and components; eslint on the changed files 0 errors. - **Browser** (real Console on the showcase expense report, New form; light and dark at 1280 px, light at 375 px): - default form: Report section, then the Expense Lines grid inside the form; - with a temporary, uncommitted Totals field: Report, Expense Lines, Totals in that order, and the section bar reads Report / Expense Lines / Totals; - temporary tabbed form view: tabs Report / Expense Lines / Totals, the grid in the Expense Lines tab; - temporary wizard form view: drawn as the simple form, same order. All temporary edits were reverted before commit. Clause-②: no Metadata-protocol: none ## DELIBERATE CORRECTION (pending release note) `Check Changeset` is red by design: this PR rewrites one line of a pending release note it did not add, because the behaviour that line describes is the behaviour this PR changes. Restoring it would republish a false sentence. - Note: `.changeset/35889-master-detail-tab-by-default.md` (S1, #35921, unreleased). - Before: "In the entry form a placed table still sits below the record's fields, where `inlineEdit` tables sit today. Moving it to its group's place in the form is a follow-up." - After: "In the entry form a placed table sits at its group's place too: between the sections of the groups around it, or in a tab of its own (labelled with the group) in a tabbed form. A form whose sections name no field group keeps it below the record's fields." No other line of that note changes. The seat confirms this through its same-head contract-review record (landing-operations.md). ## Follow-ups (not in this PR) - `bodyTablePlacement` (plugin-detail) and `placeFormSlots` (plugin-form) now spell the same ordering rule twice; a shared pure helper would need a new export (spec or a shared ui package), so it is left as a candidate card rather than widening this PR. - A form section that references the placing group itself (`sections: [{ group: 'lines' }]`) still resolves to nothing (the group holds no fields); unchanged here. - After a jump, the section bar's brief highlight (`data-section-jumped`, #35988) styles heading rows only, so a jump to the table scrolls to it without the flash. - Neighbours: #35984 also edits `MasterDetailForm.tsx` (textual conflict, whichever lands second merges); #35923 edits `docs/adr/0035`. ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` passes. - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: its generated artifacts are regenerated and committed. - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. - [x] The *Before Submitting* list in CONTRIBUTING.md is done. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgXUMw7b8gUmNsyoXHR <!-- signed: repo:objectstack#1 · os-sales · session_01L6bhgXUMw7b8gUmNsyoXHR --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent a23164e commit 6b51822

18 files changed

Lines changed: 801 additions & 26 deletions
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
'@object-ui/plugin-form': patch
3+
'@object-ui/components': patch
4+
'@objectstack/spec': patch
5+
---
6+
7+
fix(ui): the entry form draws a group-placed master-detail table at its field group
8+
9+
Clause-②: no
10+
Metadata-protocol: none
11+
12+
A master-detail child that a field group of the parent places (`fieldGroups[].relatedList`) is now drawn at that group in the parent's create and edit forms, where the record page draws it, instead of below all of the record's fields:
13+
14+
- A form laid out from the parent's field groups draws the table after the sections of the groups declared before the placing group and before the ones declared after it.
15+
- The form's section bar stops at the table too, between the sections around it.
16+
- A tabbed form gives it a tab of its own at that position, labelled with the group's label. A wizard master-detail form is drawn as the simple form, as before, and places it the same way.
17+
- A form whose sections name no field group, and a child no group places (a form view's own `subforms`), keep the table below the record's fields, as before.
18+
19+
The table is the same one: its rows still save with the record in one batch, an expanded row's editor opens beside it, and the document totals stay at the foot of the form. No metadata changes.

‎.changeset/35889-master-detail-tab-by-default.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ A `master_detail` FK that declares no `relatedList` used to put its child list i
1919
- `inlineEdit` on the FK no longer inlines a child in the parent's form by itself (maintainer ruling B: only the field group decides). It now only picks the form factor of a child a group places: `'grid'`, `'form'`, or `true` / absent for the shape-picked default. A child with `inlineEdit` that no group names is a tab and is not in the form.
2020
- `os lint`: `relationship/line-items-inline-edit` now suggests a field group on the parent (with its required `label`) instead of `inlineEdit: true`, and only for a FK a group may place; `relationship/association-inline-edit` and `relationship/inline-edit-needs-bulk` judge the children a parent group places; the field-consumer rule credits a child's inline grid columns only when a parent group places it.
2121
- The showcase invoice and expense report, and the CRM opportunity, gain a field group naming their lines, so their forms and record pages keep the line table.
22-
- In the entry form a placed table still sits below the record's fields, where `inlineEdit` tables sit today. Moving it to its group's place in the form is a follow-up.
22+
- In the entry form a placed table sits at its group's place too: between the sections of the groups around it, or in a tab of its own (labelled with the group) in a tabbed form. A form whose sections name no field group keeps it below the record's fields.
2323
- Studio's field-group picker offers the same children as before. The relationship field inspector reads a plain `master_detail` FK as "Show", and "Show" leaves the key absent so a group can still place it.
2424

2525
To keep a master-detail child's table in the overview and its rows in the form (including a child that set `inlineEdit`), add a field group to the parent that names it, in the place the table should sit:

‎content/docs/references/data/object.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ const result = ApiMethod.parse(data);
332332
| **fields** | `string[]` | optional | The group's members in display order (field names of this object). Written, it decides which fields the group shows and their order on the record page and the forms, without changing the order of the object's fields. Absent, members are the fields whose `group` names this group, in field declaration order (the older spelling, still read). A field whose `group` names this group but that the list does not name follows the listed ones. Refused: a listed field whose own `group` names another group, a field two groups list, a repeated name, and `fields` on a group with `relatedList`. A name the object does not declare is skipped. |
333333
| **icon** | `string` | optional | Icon name (Lucide/Material) for the group header |
334334
| **description** | `string` | optional | Optional description shown under the group header |
335-
| **relatedList** | `string` | optional | Places a related list's body table at this position in the record's details column instead of a section of fields: names one inbound relationship, as a relatedLists entry does (child object, or object.field when that child has more than one relationship to this object). A group with relatedList holds no fields: a field that names it as its group is refused, and so is a fields list on it. The name is judged as a relatedLists entry is: refused when its child is in the stack with no inbound lookup / master_detail field, or exists nowhere (by os validate / os build, which leave a sys_ / cloud_ / ai_ name to the runtime, and by a metadata write that names no package); a write into a package stores it, and the record page places nothing for it. It names a body table only (a FK declaring relatedList: 'primary', or a master_detail FK that declares no relatedList, which is a tab unless a group places it; placed, it is drawn here, and the parent's entry form inlines it below the record's fields until the form places it at the group as well): a group naming a side card or a list hidden by relatedList: false draws nothing, so it is refused where the child's fields are known (os validate / os build and the metadata write door), naming the FK and the remedy (set relatedList: 'primary' on it, name only the body table as object.field when a bare child name also names a side card, or remove the group's relatedList). |
335+
| **relatedList** | `string` | optional | Places a related list's body table at this position in the record's details column instead of a section of fields: names one inbound relationship, as a relatedLists entry does (child object, or object.field when that child has more than one relationship to this object). A group with relatedList holds no fields: a field that names it as its group is refused, and so is a fields list on it. The name is judged as a relatedLists entry is: refused when its child is in the stack with no inbound lookup / master_detail field, or exists nowhere (by os validate / os build, which leave a sys_ / cloud_ / ai_ name to the runtime, and by a metadata write that names no package); a write into a package stores it, and the record page places nothing for it. It names a body table only (a FK declaring relatedList: 'primary', or a master_detail FK that declares no relatedList, which is a tab unless a group places it; placed, it is drawn here, and the parent's entry form inlines it here too, or below its fields when the form's sections name no field group): a group naming a side card or a list hidden by relatedList: false draws nothing, so it is refused where the child's fields are known (os validate / os build and the metadata write door), naming the FK and the remedy (set relatedList: 'primary' on it, name only the body table as object.field when a bare child name also names a side card, or remove the group's relatedList). |
336336
| **visibleWhen** | `string \| { dialect: Enum<'cel' \| 'cron' \| 'template'>; source: string; ast?: any; meta?: object }` | optional | Section visibility predicate (CEL) — the whole group (header included) is shown only when TRUE, else hidden (fail-closed). e.g. P`record.type == 'invoice'` |
337337
| **requiresFeature** | `Enum<'twoFactor' \| 'organization' \| 'multiOrgEnabled' \| 'degradedTenancy' \| …>` | optional | Deployment feature flag gating this group, from the same set an action's `requiresFeature` names (e.g. 'multiOrgEnabled'). Lowered at parse time into the group's `visibleWhen` (AND-composed after an authored `visibleWhen`) and stripped from the output; the whole group is hidden where the flag is off. Presentation only: the fields stay readable through the API. |
338338
| **collapse** | `Enum<'none' \| 'expanded' \| 'collapsed'>` | optional (default: `"none"`) | [ADR-0085] Section collapse behaviour: 'none' (always open, no toggle), 'expanded' (collapsible, starts open), 'collapsed' (collapsible, starts closed). |
@@ -747,7 +747,7 @@ External datasource binding (ADR-0015)
747747
| **fields** | `string[]` | optional | The group's members in display order (field names of this object). Written, it decides which fields the group shows and their order on the record page and the forms, without changing the order of the object's fields. Absent, members are the fields whose `group` names this group, in field declaration order (the older spelling, still read). A field whose `group` names this group but that the list does not name follows the listed ones. Refused: a listed field whose own `group` names another group, a field two groups list, a repeated name, and `fields` on a group with `relatedList`. A name the object does not declare is skipped. |
748748
| **icon** | `string` | optional | Icon name (Lucide/Material) for the group header |
749749
| **description** | `string` | optional | Optional description shown under the group header |
750-
| **relatedList** | `string` | optional | Places a related list's body table at this position in the record's details column instead of a section of fields: names one inbound relationship, as a relatedLists entry does (child object, or object.field when that child has more than one relationship to this object). A group with relatedList holds no fields: a field that names it as its group is refused, and so is a fields list on it. The name is judged as a relatedLists entry is: refused when its child is in the stack with no inbound lookup / master_detail field, or exists nowhere (by os validate / os build, which leave a sys_ / cloud_ / ai_ name to the runtime, and by a metadata write that names no package); a write into a package stores it, and the record page places nothing for it. It names a body table only (a FK declaring relatedList: 'primary', or a master_detail FK that declares no relatedList, which is a tab unless a group places it; placed, it is drawn here, and the parent's entry form inlines it below the record's fields until the form places it at the group as well): a group naming a side card or a list hidden by relatedList: false draws nothing, so it is refused where the child's fields are known (os validate / os build and the metadata write door), naming the FK and the remedy (set relatedList: 'primary' on it, name only the body table as object.field when a bare child name also names a side card, or remove the group's relatedList). |
750+
| **relatedList** | `string` | optional | Places a related list's body table at this position in the record's details column instead of a section of fields: names one inbound relationship, as a relatedLists entry does (child object, or object.field when that child has more than one relationship to this object). A group with relatedList holds no fields: a field that names it as its group is refused, and so is a fields list on it. The name is judged as a relatedLists entry is: refused when its child is in the stack with no inbound lookup / master_detail field, or exists nowhere (by os validate / os build, which leave a sys_ / cloud_ / ai_ name to the runtime, and by a metadata write that names no package); a write into a package stores it, and the record page places nothing for it. It names a body table only (a FK declaring relatedList: 'primary', or a master_detail FK that declares no relatedList, which is a tab unless a group places it; placed, it is drawn here, and the parent's entry form inlines it here too, or below its fields when the form's sections name no field group): a group naming a side card or a list hidden by relatedList: false draws nothing, so it is refused where the child's fields are known (os validate / os build and the metadata write door), naming the FK and the remedy (set relatedList: 'primary' on it, name only the body table as object.field when a bare child name also names a side card, or remove the group's relatedList). |
751751
| **visibleWhen** | `string \| { dialect: Enum<'cel' \| 'cron' \| 'template'>; source: string; ast?: any; meta?: object }` | optional | Section visibility predicate (CEL) — the whole group (header included) is shown only when TRUE, else hidden (fail-closed). e.g. P`record.type == 'invoice'` |
752752
| **requiresFeature** | `Enum<'twoFactor' \| 'organization' \| 'multiOrgEnabled' \| 'degradedTenancy' \| 'oidcProvider' \| 'sso' \| 'ssoEnforced' \| 'directSignIn' \| 'deviceAuthorization' \| 'admin' \| … +5 more>` | optional | Deployment feature flag gating this group, from the same set an action's `requiresFeature` names (e.g. 'multiOrgEnabled'). Lowered at parse time into the group's `visibleWhen` (AND-composed after an authored `visibleWhen`) and stripped from the output; the whole group is hidden where the flag is off. Presentation only: the fields stay readable through the API. |
753753
| **collapse** | `Enum<'none' \| 'expanded' \| 'collapsed'>` | optional (default: `"none"`) | [ADR-0085] Section collapse behaviour: 'none' (always open, no toggle), 'expanded' (collapsible, starts open), 'collapsed' (collapsible, starts closed). |

‎docs/adr/0035-config-driven-master-detail.md‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,19 @@ a self-referential FK surfaces a "children" list.
169169
> group (a `master_detail` FK may instead drop `relatedList: true`); a group
170170
> naming a list its FK hides (`false`) is refused.
171171
172+
> **Note (2026-11-21, #35889, second slice).** The entry form now draws a
173+
> placed child where the record page does, so "placed in the form below the
174+
> record's fields until the form places it at the group" above is superseded.
175+
> A form laid out from the parent's field groups draws the child's table
176+
> after the sections of the groups declared before the placing group and
177+
> before those declared after it; a tabbed form gives it a tab of its own at
178+
> that position, labelled with the group's label (a wizard master-detail form
179+
> is drawn as the simple form, as before). A form whose sections name no
180+
> declared field group, and a child no group places (a form view's own
181+
> subforms), keep the table below the record's fields. The table is the same
182+
> one: it still saves with the record in one batch, and the document totals
183+
> stay at the foot of the form.
184+
172185
The derivation is a pure function — `deriveRelatedLists(objectDef, objects)` in
173186
`@object-ui/app-shell` (`utils/deriveRelatedLists.ts`) — the read-side analogue
174187
of `attachInlineSubforms`. `RecordDetailView` feeds its output into the

‎packages/spec/src/data/field.zod.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2365,8 +2365,8 @@ export const FieldSchema = lazySchema(() => {
23652365
* #35597's `'primary'` default): it joins the record's main content only
23662366
* when a field group of the PARENT names it (`ObjectFieldGroupSchema.relatedList`),
23672367
* which draws its table at the group's position in the record page and its
2368-
* edit state, and inlines it in the parent's entry form (below the record's
2369-
* fields until the form places it at the group too).
2368+
* edit state, and inlines it in the parent's entry form at the same place
2369+
* (a form whose sections name no field group keeps it below its fields).
23702370
* Write `relatedList: true` to keep it a tab even from a group (a group
23712371
* naming it is refused), `'primary'` to make it a body table with no group,
23722372
* or `false` to hide it.

‎packages/spec/src/data/object.zod.ts‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,8 +1414,9 @@ export const ObjectFieldGroupSchema = lazySchema(() => strictObject({
14141414
* `relatedList: 'primary'` (the group positions that body table), or a
14151415
* `master_detail` FK that declares no `relatedList` (a tab by default; the
14161416
* group makes it a body table at this position in the record page and its
1417-
* edit state, and the parent's entry form inlines it, below the record's
1418-
* fields until the form places it at the group too, #35889). A group
1417+
* edit state, and the parent's entry form inlines it at the same position;
1418+
* a form whose sections name no field group keeps it below its fields,
1419+
* #35889). A group
14191420
* naming a side card, or a list its FK hides with `relatedList: false`,
14201421
* draws nothing at the group, so it is refused wherever the child's fields
14211422
* are known: at `defineStack` and at the runtime metadata write door
@@ -1426,7 +1427,7 @@ export const ObjectFieldGroupSchema = lazySchema(() => strictObject({
14261427
*/
14271428
relatedList: z.string().regex(RELATED_LIST_ENTRY_PATTERN, {
14281429
message: 'A field group\'s relatedList is a child object name (e.g. "task") or object.field (e.g. "event.related_to"), in snake_case',
1429-
}).optional().describe('Places a related list\'s body table at this position in the record\'s details column instead of a section of fields: names one inbound relationship, as a relatedLists entry does (child object, or object.field when that child has more than one relationship to this object). A group with relatedList holds no fields: a field that names it as its group is refused, and so is a fields list on it. The name is judged as a relatedLists entry is: refused when its child is in the stack with no inbound lookup / master_detail field, or exists nowhere (by os validate / os build, which leave a sys_ / cloud_ / ai_ name to the runtime, and by a metadata write that names no package); a write into a package stores it, and the record page places nothing for it. It names a body table only (a FK declaring relatedList: \'primary\', or a master_detail FK that declares no relatedList, which is a tab unless a group places it; placed, it is drawn here, and the parent\'s entry form inlines it below the record\'s fields until the form places it at the group as well): a group naming a side card or a list hidden by relatedList: false draws nothing, so it is refused where the child\'s fields are known (os validate / os build and the metadata write door), naming the FK and the remedy (set relatedList: \'primary\' on it, name only the body table as object.field when a bare child name also names a side card, or remove the group\'s relatedList).').meta({ title: 'Related List' }),
1430+
}).optional().describe('Places a related list\'s body table at this position in the record\'s details column instead of a section of fields: names one inbound relationship, as a relatedLists entry does (child object, or object.field when that child has more than one relationship to this object). A group with relatedList holds no fields: a field that names it as its group is refused, and so is a fields list on it. The name is judged as a relatedLists entry is: refused when its child is in the stack with no inbound lookup / master_detail field, or exists nowhere (by os validate / os build, which leave a sys_ / cloud_ / ai_ name to the runtime, and by a metadata write that names no package); a write into a package stores it, and the record page places nothing for it. It names a body table only (a FK declaring relatedList: \'primary\', or a master_detail FK that declares no relatedList, which is a tab unless a group places it; placed, it is drawn here, and the parent\'s entry form inlines it here too, or below its fields when the form\'s sections name no field group): a group naming a side card or a list hidden by relatedList: false draws nothing, so it is refused where the child\'s fields are known (os validate / os build and the metadata write door), naming the FK and the remedy (set relatedList: \'primary\' on it, name only the body table as object.field when a bare child name also names a side card, or remove the group\'s relatedList).').meta({ title: 'Related List' }),
14301431

14311432
/**
14321433
* [ADR-0085 §5] Section visibility predicate — CEL, the ADR-0089 canonical

0 commit comments

Comments
 (0)