You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A textfilter (com.mendix.widget.web.datagridtextfilter.DatagridTextFilter) placed inside a Gallery filter block fails mx check with CE0463 ("the definition of this widget has changed"). The same widget inside a DataGrid column passes cleanly, so the bug is specific to the Gallery-filter context.
This was noticed while fixing #574 (VideoPlayer/Timeline visibility) — it is a separate, pre-existing bug, not introduced by that change.
gallery gal1 (datasource: database from PW.Item sort by title asc) {
filter flt1 {
textfilter tf1 (attributes: [title, description])
pluggablewidget 'com.mendix.widget.web.dropdownsort.DropdownSort' ddSort1
}
template tpl1 { ... }
}
$ mxcli exec mdl-examples/doctype-tests/30-pluggable-widget-examples.mdl -p test5.mpr
$ ~/.mxcli/mxbuild/11.9.0/modeler/mx check test5.mpr
[error] [CE0463] "The definition of this widget has changed..." at Text filter 'tf1'
The app contains: 1 errors.
The sibling DropdownSort in the same filter block does not error.
Localization
A textfilter inside a DataGrid column (mdl-examples/bug-tests/189-datagrid2-column-textfilter.mdl) passes with 0 errors. So the drift is specific to the Gallery filter context, not the widget itself.
Diagnosis so far
Decoding tf1's emitted BSON: the WidgetType and WidgetObject are structurally aligned — 12 property types, 12 object properties, no missing/extra keys. So this is value-level drift, not a property-count mismatch.
Candidate causes (unconfirmed):
attrChoice vs explicit attributes. In a column, the filter binds to the column's single attribute and attrChoice: auto is correct. Here tf1 is given explicit attributes: [title, description] (the attributeObjects mapping) — Studio Pro may expect attrChoice: linked (or expression) when attributes are listed explicitly outside a column context.
Next step: diff tf1's BSON against a Studio Pro–created textfilter-in-gallery-filter to see exactly which field drifted (the debug-bson.md Update-widget methodology).
Summary
A
textfilter(com.mendix.widget.web.datagridtextfilter.DatagridTextFilter) placed inside a Galleryfilterblock failsmx checkwith CE0463 ("the definition of this widget has changed"). The same widget inside a DataGridcolumnpasses cleanly, so the bug is specific to the Gallery-filter context.This was noticed while fixing #574 (VideoPlayer/Timeline visibility) — it is a separate, pre-existing bug, not introduced by that change.
Environment
v0.11.0-49-gd8819ba4+ branchissues-2@b179d966mx-test-projects/test5-app/test5.mpr)Reproduction
mdl-examples/doctype-tests/30-pluggable-widget-examples.mdl, page PW06 (PW.P_PW06_GalleryFilter):The sibling
DropdownSortin the samefilterblock does not error.Localization
A
textfilterinside a DataGrid column (mdl-examples/bug-tests/189-datagrid2-column-textfilter.mdl) passes with 0 errors. So the drift is specific to the Galleryfiltercontext, not the widget itself.Diagnosis so far
Decoding
tf1's emitted BSON: the WidgetType and WidgetObject are structurally aligned — 12 property types, 12 object properties, no missing/extra keys. So this is value-level drift, not a property-count mismatch.Candidate causes (unconfirmed):
attrChoicevs explicit attributes. In a column, the filter binds to the column's single attribute andattrChoice: autois correct. Heretf1is given explicitattributes: [title, description](theattributeObjectsmapping) — Studio Pro may expectattrChoice: linked(orexpression) when attributes are listed explicitly outside a column context.placeholder,screenReaderButtonCaption,screenReaderInputCaptionare emitted as populated emptyForms$ClientTemplate; Studio Pro may want one or more asnull(same family as Widget property conditional visibility from editorConfig.js (CE0463 on VideoPlayer + Timeline) #574, but the embeddedtextfilter.def.jsonhas nopropertyVisibility).Next step: diff
tf1's BSON against a Studio Pro–created textfilter-in-gallery-filter to see exactly which field drifted (thedebug-bson.mdUpdate-widget methodology).Related
mdl-examples/bug-tests/189-datagrid2-column-textfilter.mdl— the passing column-context counterpart