Skip to content

forms: a relation.field may cross models - #69

Open
delchev wants to merge 1 commit into
mainfrom
form-cross-model-hop
Open

forms: a relation.field may cross models#69
delchev wants to merge 1 commit into
mainfrom
form-cross-model-hop

Conversation

@delchev

@delchev delchev commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

The forms section described a relation.field entry as a one-hop to-one path without saying which models the hop may reach — and implementations read that as local-only, so the relation a document's form most needs to read a field of, its counterparty, was the one it refused (an invoice's Send form showing the customer's address). The same one-hop path is already cross-model for a notify recipient.

This states it, in the shape the cross-model roll-up paragraph already uses:

  • the hop MAY be cross-model, and the relation's model: must be declared in uses:;
  • the referenced field is validated against the owner's model at generation time, not against the local document;
  • a field the owner model does not declare MUST be reported rather than dropped — a control bound to a value nothing ever provides is indistinguishable from a record that has no value.

Implemented in Eclipse Dirigible: eclipse-dirigible/dirigible#7118 (issue eclipse-dirigible/dirigible#7093).

The spec described a form's relation.field as a one-hop to-one without
saying which models the hop may reach, and implementations read that as
local-only - so the relation a document's form most needs to read a
field of, its counterparty, was refused. State it: the hop may be
cross-model, resolved against the owner's model at generation time, the
same one-hop path a notify recipient takes, and a field the owner does
not declare must be reported rather than silently dropped.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant