Conversation
`alter page P { set RenderMode = H1 on <dynamictext> }` was refused
("property \"RenderMode\" not found (widget has no pluggable Object)",
now worded as "not a property of this built-in widget … use alter
styling"), although CREATE PAGE and REPLACE accept RenderMode on a
dynamictext. setRawWidgetPropertyMut had no case for it, so it fell
through to the pluggable-property setter.
Add a RenderMode case dispatched on the stored $Type (Forms$DynamicText):
the value is validated case-insensitively against Text, Paragraph and
H1-H6 and written in its canonical spelling; anything else is refused
with the accepted list, leaving the document untouched. Other widgets
keep the previous path. `check -p` picks this up for free, since it
dry-runs the same setter.
Verified on a copy of a Mendix 11.14.0 app: exec -> describe shows
RenderMode: H2 -> mx check 0 errors.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013uU1FnquwBoB43skj34Xh1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013uU1FnquwBoB43skj34Xh1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013uU1FnquwBoB43skj34Xh1
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.
Upstream issue: to be filed on mendixlabs/mxcli (CONTRIBUTING step 1). Draft and package in
MendixMau/mxcli-project-toolkit→bug-logs/pending-github-issues/bug141-*.What does it do?
ALTER PAGE/ALTER SNIPPETcan now setRenderModeon a dynamic text:CREATE PAGEalready wrote this property, and the MCP backend's mutator already set it. The MPR backend's fixed property list insetRawWidgetPropertyMutdid not include it, so the statement fell through to the pluggable-widget setter and failed. The new case:Forms$DynamicText); any other widget gets an error naming itText,ParagraphandH1–H6in any casing, and stores the canonical spellinginvalid RenderMode "H7" for dynamic text "txtTitle": expected one of Text, Paragraph, H1, H2, H3, H4, H5, H6Testing
mdl/backend/pagemutator/dynamictext_rendermode_test.go. They fail onmain(31eee45) and pass with the fix; I checked this by swapping the originalmutator.goback in.mdl-examples/bug-tests/alter-page-set-rendermode-dynamictext.mdlcovers a page and a snippet.make build,make testandmake lintpass.Mendix validation
Mendix 11.14.0, on a copy of a real project:
set RenderMode = H2on an existing dynamic text printedAltered page.describe pageshowsRenderMode: H2.mx checkreports 0 errors..mxunitchanged.Docs
alter-pagealter-page.mdMDL_QUICK_REFERENCE.mdmxcli syntax page.alter.claude/skills/fix-issue/findings/mdl-backend.jsonlAgentic Code Testing
Out of scope
set Content/ContentParamson a dynamic text (grammar-level)RenderModeon a containerRenderTypeon a button🤖 Generated with Claude Code
https://claude.ai/code/session_013uU1FnquwBoB43skj34Xh1