Skip to content

Expression-type properties of pluggable widgets are silently dropped by exec in CREATE OR MODIFY PAGE #2050

Backlog

Description

@acarum

mxcli version: v0.33.1
Mendix version: 11.12.8

Description:

When a CREATE OR MODIFY PAGE statement includes an expression-type property (e.g. Placeholder) on a pluggable widget, mxcli check accepts the property with exit 0 and no warnings. However, mxcli exec applies the script successfully (exit 0, no warnings) but silently drops the property — it is not written to the .mpr model.

The issue was first observed on the Placeholder property of the entitypicker pluggable widget, but the root cause is likely the handling of expression-type properties in pluggable widget descriptors during CREATE OR MODIFY PAGE execution.

Steps to reproduce:

  1. Write a CREATE OR MODIFY PAGE script with a pluggable widget that includes an expression-type property (e.g. Placeholder: '$currentObject/AttributeName' on an entitypicker)
  2. mxcli check → exits 0, no warnings, property accepted as valid syntax
  3. mxcli exec → exits 0, Created/Altered page ..., no warnings
  4. mxcli -c "DESCRIBE PAGE Module.Page" → property is absent from the widget output
  5. Runtime: the widget behaves as if the property was never set

Expected: property written to the model and readable via DESCRIBE.
Actual: property silently absent after exec. No error or warning at check, exec, lint, or mxbuild.

Workaround:

Apply the property after exec via ALTER PAGE SET:

mdl
mdl 1;
ALTER PAGE "Module"."PageName" {
SET (Placeholder: '$currentObject/AttributeName') ON "epWidgetName";
};

Confirmed: ALTER PAGE SET correctly persists expression-type properties (idempotent, second exec returns Unchanged).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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