Skip to content

[Bug] ALTER PAGE SET Title / SET Label silently succeeds but change does not persist #292

@Chendodelangen

Description

@Chendodelangen

Summary

ALTER PAGE SET Title and SET Label (on input widgets) return Altered page but the change is not saved. The next DESCRIBE PAGE still shows the original value.

Environment

  • mxcli version: current
  • Mendix version: 10.24.15

Steps to Reproduce

# Set page title
./mxcli -p MyProject.mpr -c "ALTER PAGE Mod.MyPage { SET Title = 'New title' };"
# Output: Altered page Mod.MyPage  ← appears successful

# Verify
./mxcli -p MyProject.mpr -c "DESCRIBE PAGE Mod.MyPage"
# Output still shows: Title: 'Old title'

# Same behaviour for widget labels
./mxcli -p MyProject.mpr -c "ALTER PAGE Mod.MyPage { SET Label = 'New label' ON textBox1 };"
# Output: Altered page Mod.MyPage
# DESCRIBE still shows: Label: 'Old label'

Expected Behaviour

The title / label is updated in the model, or mxcli returns an error explaining why it cannot be changed.

Actual Behaviour

The operation reports success but the model is unchanged. No error, no warning.

Root Cause (suspected)

Mendix stores page titles and widget labels as TranslatableString internally. mxcli likely writes to a slot that does not match the language-specific storage format, so the value is discarded on serialisation.

Workaround

Edit the title or label manually in Studio Pro.

Severity

Medium — silent failure is misleading; the change appears to have been applied but wasn't.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions