Skip to content

Commit aea000b

Browse files
akoclaude
andcommitted
fix: align datagrid WidgetObject boolean defaults with PropertyType schema
Refs: mendixlabs#541 — final CE0463 gap closed The embedded datagrid.json template had two WidgetObject Boolean property values that didn't match their PropertyType.ValueType.DefaultValue: Property Schema default Stored value (wrong) ───────────────── ────────────── ──────────────────── columnsFilterable 'true' 'false' sortable 'true' 'false' Studio Pro detects this as the widget definition being "out of sync" and emits CE0463 ("The definition of this widget has changed") on every DataGrid widget instance in the project. Fixed by setting WidgetObject's stored PrimitiveValue to match the schema default. Audited all 30 embedded templates; datagrid.json was the only one with Boolean-property default mismatches. Result: all 7 CE0463 errors in the v0.10 fixture are eliminated. Remaining errors (4 total) are unrelated to widget templates: - 2× CE0106 Microflow security (pre-existing project errors) - 1× CE0720 Placeholder index in dgDyn ContentParams (MDL issue) - 1× CE7410 Button action page param type mismatch (MDL issue) Cumulative CE0463 fixes landed across 4 commits: ec99cdff Added AllowUpload field to WidgetValueType BSON b1f4de3a Reordered WidgetObject.Properties to match PropertyTypes order 7e6fee84 Added required CustomWidget envelope fields to filter widgets f9818394 Populated TextTemplate translation defaults + Editable=Always THIS Aligned Boolean property defaults End-to-end verification (v0.10 fixture #31): zero CE0463 errors on any DataGrid widget after `mxcli widget init` + `mxcli exec` on a fresh Mendix 11.9 project. Filter widgets, custom-content columns, controlbar buttons all open cleanly in Studio Pro. Methodology that closed CE0463: `mx dump-mpr` diff of mxcli output vs Studio-Pro-emitted reference, focused per-widget via UUID normalization. The before/after-Studio-Pro-Update-Widget diff isolated which fields Studio's canonical form requires. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 67102aa commit aea000b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sdk/widgets/templates/mendix-11.6/datagrid.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5914,7 +5914,7 @@
59145914
"Objects": [
59155915
2
59165916
],
5917-
"PrimitiveValue": "false",
5917+
"PrimitiveValue": "true",
59185918
"Selection": "None",
59195919
"SourceVariable": null,
59205920
"TextTemplate": null,
@@ -6362,7 +6362,7 @@
63626362
"Objects": [
63636363
2
63646364
],
6365-
"PrimitiveValue": "false",
6365+
"PrimitiveValue": "true",
63666366
"Selection": "None",
63676367
"SourceVariable": null,
63686368
"TextTemplate": null,

0 commit comments

Comments
 (0)