Skip to content

ALTER PAGE cannot add or drop page parameters (only variables) #1234

Description

@kaspergff

Environment: mxcli nightly-20260927-95091765 (2026-09-27T08:03:29Z), Mendix 11.12.1, Windows 11.

Summary: alter page can add and drop page variables, but not page parameters. add parameters (and add parameter / add params) is a parse error. Adding a parameter to an existing page therefore forces create or replace page, which rewrites the whole page and loses everything DESCRIBE does not round-trip yet (for example page-variable bindings on input widgets, or a combobox's association binding).

Steps to reproduce

alter page MyModule.Order_Overview {
  add parameters $Customer: MyModule.Customer
}

Actual

Syntax errors found:
  - line 2:6 mismatched input 'parameters' expecting VARIABLES_KW

For comparison, this parses fine:

alter page MyModule.Order_Overview {
  add variables $ShowAll: Boolean = 'true'
}

Expected: alter page … { add parameters $Name: Module.Entity } and drop parameters $Name (same shape as add variables / drop variables), so a parameter can be added in place without rewriting the page.

Workaround: create or replace page with the full widget tree, which is lossy for anything DESCRIBE does not round-trip.

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