Repository navigation
Description
1. mxcli version: nightly-20261130-b8a764c54 (Windows amd64)
2. Mendix version: 11.12.8
Repro app: a fresh mxcli new app, built by the script below
3. Scenario
When create or modify page replaces a Data grid 2 whose column was a plain attribute column with the same column as ShowContentAs: customContent, mxcli check and exec pass, but mx check then reports CE0463 ("The definition of this widget has changed") on the grid. Creating the same target page in one go is fine. mxcli fix widgets does not clear the error, so the only way out is "Update widget" in Studio Pro or recreating the page. Looks related to #1861 (a hidden property written as an empty text template).
Self-contained repro, run in an empty directory:
#!/usr/bin/env bash
# Repro: `create or modify page` that turns a Data grid 2 attribute column into a customContent column passes check/exec, then mx check reports CE0463.
# Needs mxcli and the mx tool of the same Mendix version (MX=path/to/mx).
set -e
cd "$(dirname "$0")"
export MXCLI_LOG_DIR="$PWD/logs"
P=Repro/Repro.mpr
MX=${MX:-mx}
mxcli new Repro --version 11.12.8 --skip-build > /dev/null
echo "== baseline"; "$MX" check $P | tail -1
cat > step1.mdl <<'MDL'
mdl 1;
create persistent entity MyFirstModule.Moment (Label: String(100), SortKey: DateTime);
-- Broken: first a plain attribute column ...
create page MyFirstModule.Broken (Title: 'Broken', Layout: Atlas_Core.Atlas_Default) {
datagrid dgBroken (DataSource: database from MyFirstModule.Moment sort by SortKey asc) {
column (Attribute: Label, Caption: 'When')
}
};
-- Fixed: the target shape, created in one go
create page MyFirstModule.Fixed (Title: 'Fixed', Layout: Atlas_Core.Atlas_Default) {
datagrid dgFixed (DataSource: database from MyFirstModule.Moment sort by SortKey asc) {
column (Attribute: SortKey, Caption: 'When', ShowContentAs: customContent) {
dynamictext txt (Content: '{1}', ContentParams: ({1} = Label))
}
}
};
MDL
# ... then replaced by the same target shape as Fixed
cat > step2.mdl <<'MDL'
mdl 1;
create or modify page MyFirstModule.Broken (Title: 'Broken', Layout: Atlas_Core.Atlas_Default) {
datagrid dgBroken (DataSource: database from MyFirstModule.Moment sort by SortKey asc) {
column (Attribute: SortKey, Caption: 'When', ShowContentAs: customContent) {
dynamictext txt (Content: '{1}', ContentParams: ({1} = Label))
}
}
};
MDL
mxcli check step1.mdl -p $P --references | tail -1
mxcli -p $P exec step1.mdl
echo "== after step1"; "$MX" check $P | tail -1
mxcli check step2.mdl -p $P --references | tail -1
mxcli -p $P exec step2.mdl
echo "== after step2"; "$MX" check $P | grep -E "^\[error\]|contains" || true
mxcli bson dump -p $P --type page --compare "MyFirstModule.Fixed,MyFirstModule.Broken" > compare.txt || true
echo "== after fix widgets"; mxcli fix widgets -p $P > /dev/null; "$MX" check $P | tail -1Output (progress lines left out):
== baseline
The app contains: 0 errors.
Check passed!
Created entity: MyFirstModule.Moment
Created page MyFirstModule.Broken
Created page MyFirstModule.Fixed
== after step1
The app contains: 0 errors.
Check passed!
Replaced page MyFirstModule.Broken
== after step2
[error] [CE0463] "The definition of this widget has changed. Update this widget by right-clicking it and selecting 'Update widget', or select 'Update all widgets' to update all widgets in the app." at Data grid 2 'dgBroken'
The app contains: 1 errors.
== after fix widgets
The app contains: 1 errors.
4. Expected output
create or modify pagewrites the replaced column exactly ascreate pagedoes: the properties that are hidden forcustomContent(heretooltip) stay unset (TextTemplate: null), andmx checkreports 0 errors.mxcli fix widgetsrepairs a grid in this state (resets hidden properties to their defaults), so existing models can be cleaned up.- Until then:
mxcli checkwarns when a modify changesShowContentAsof an existing Data grid 2 column.
5. Experienced output
mxcli bson dump --compare MyFirstModule.Fixed,MyFirstModule.Broken shows, apart from IDs, type pointers and names, one difference: the column's tooltip property value.
Column property tooltip (Properties[9].Value.Objects[1].Properties[7]) |
Fixed (create page) |
Broken (create or modify page) |
|---|---|---|
Value.TextTemplate |
null |
Forms$ClientTemplate with an empty Template/Fallback and no parameters |
tooltip is hidden for customContent columns, so it seems mx expects it unset. The modify keeps the empty template that the plain attribute column had.
The same happens with export settings on the column (exportValue, exportType: 'date', exportDateFormat) and with Data grid 2 3.11.2; the minimal case above needs none of them. A modify that keeps a plain attribute column (another caption, or another attribute) gives 0 errors.
Other spellings tried
create pagedirectly with the customContent column → 0 errors (that is pageFixed)mxcli fix widgetsafter the modify → stillThe app contains: 1 errors.
6. AI bug report
mxcli diag of the repro run:
Version: nightly-20261130-b8a764c54
Go: go1.27.4 windows/amd64
Sessions: 7 (last 7 days)
Errors: 0 (last 7 days)
Session log of -p Repro/Repro.mpr exec step2.mdl (from mxcli diag --bundle):
{"time":"2026-12-01T14:34:33.0732469+01:00","level":"INFO","msg":"session_start","version":"nightly-20261130-b8a764c54","go":"go1.27.4","os":"windows","arch":"amd64","mode":"mxcli exec","args":["mxcli","-p","Repro/Repro.mpr","exec","step2.mdl"],"pid":28124,"parent_pid":""}
{"time":"2026-12-01T14:34:34.1094161+01:00","level":"INFO","msg":"execute","stmt_type":"CreatePageStmtV3","stmt_summary":"create page MyFirstModule.Broken","duration_ms":206}
{"time":"2026-12-01T14:34:34.1181547+01:00","level":"INFO","msg":"session_end","commands_executed":2,"errors_count":0,"duration_s":1,"pid":28124}
exec reports 0 errors; the CE0463 only appears in mx check.
Why it matters
A common edit is turning a plain grid column into custom content (for example to show "never" for an empty date, with an export value). Done with create or modify page, it looks fine in mxcli and only breaks at mx check/Studio Pro, and fix widgets does not repair it. Current workaround: make that column change in Studio Pro (or "Update widget" there), or delete and recreate the page.
Activity