Skip to content

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

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

forms: a relation.field may cross models#52
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

Site half of IntentFile/intent-specification#69.

The forms section described a relation.field entry as a one-hop to-one without saying which models the hop may reach, so the relation a document's form most needs to read a field of — its counterparty — read as out of scope. States it: the hop may be cross-model (an invoice's Send form showing the customer's address, so the clerk sees an empty one before pressing Send), the model: must be declared in uses:, the field is checked against the owner's model at generation, and a field the owner does not declare must be reported rather than leaving a control bound to nothing.

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

npm run docs:build is clean.

State what the forms section left open: the one-hop hop may reach an
entity another module owns, which is what lets a document's form show a
field of its counterparty (an invoice's Send form showing the customer's
address). Same one-hop path a notify recipient takes, checked against
the owner's model at generation, and a field the owner does not declare
must be reported rather than leaving a control bound to nothing.

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