Repository navigation
Conversation
…ation attribute (CE7247) `combobox cb (Attribute: Flag)` on a Boolean, with no data source, passed `check --references` and `exec` and failed mxbuild with CE7247 "Only attributes of type Enumeration are allowed here." Enumeration mode writes the attribute to `attributeEnumeration`, whose AllowedTypes is Enum alone. Measured on fresh 11.14.0 and 11.13.0 projects, one combo box per type: String, Integer, Long, Decimal, AutoNumber, Boolean, DateTime and Binary are CE7247; Enumeration builds clean. MDL-WIDGET39 now judges an enumeration-mode combo box against that matrix, carrying the error code per rule (CE2421 for the built-in inputs, CE7247 for the combo box). Association mode (an options data source) is not judged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VKmbj53BC2vuUWYmgWgfQ5
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes the gap noted under "Related gap, not fixed here" in #1390 (found while measuring mendixlabs#1466).
Symptom
combobox cb (Attribute: Flag)on a Boolean, no data source, passedmxcli check --referencesandexec, then failed mxbuild:Measurement
One combo box per attribute type, each with its own name, on fresh
mxcli newprojects. 11.14.0 and 11.13.0 gave identical results:check --referenceson the same script reported none of the 8.The combo box template explains why. In enumeration mode the attribute is written to
attributeEnumeration, whoseAllowedTypesis[Enum]. The widget does have a separateattributeBooleanslot (optionsSourceType: boolean), but MDL never writes it.Fix
MDL-WIDGET39 (the CE2421 attribute-type matrix for the built-in inputs) now also judges a combo box in enumeration mode. Only Enumeration is accepted; the message names CE7247 and suggests
checkbox/radiobuttonsfor a Boolean. Each rule now carries its own error code (CE2421for the built-in inputs,CE7247for the combo box), because the message text is the same.--referenceswalk, so it needs-p.execuses that walk, so it refuses the shape too.Tests
validate_widget_attribute_type_test.go: the per-type matrix for enumeration mode (written independently of the rule's table), the Boolean message case, and an association-mode control.Proof by revert: with the combo box branch stubbed out, 9 checks fail (the 8 types plus the message test); restored, they pass.
Two-variant mxbuild run (11.14.0)
--no-check→ exactly CE7247 ×1 atcbFlag.cbFlag→ 0 errors. Its controls (comboboxon an Enumeration,checkboxon the Boolean) build clean.check -p --referenceson the 9-type measurement script reports exactly the 8 combo boxes mxbuild reports.mdl-examplesscripts containing a combo box gets a new MDL-WIDGET39 undercheck -p --references.Also
mdl-examples/bug-tests/combobox-enumeration-mode-attribute-type-ce7247.mdl. It is plain.mdlbecause the rule needs a project andmake check-mdlruns without one.create-page/reference/widgets.md.mdl-executor/2026-10-22-combobox-enumeration-mode-attribute-type-ce7247.json.Not done here
Writing a Boolean combo box properly (
optionsSourceType: boolean+attributeBoolean, plus describe reading it back) would be a feature, not this check.Validation
go test ./...,go vet,gofmt,make lint,make check-mdl,make check-skill-mdl(1240 blocks),make check-skill-indexandmake check-findingspass. No writer or describe change, so roundtrip was not run.Generated by Claude Code