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
feat: add ALTER PAGE ADD/DROP VARIABLE support (Phase 3)
Implement ADD/DROP variable operations for ALTER PAGE/SNIPPET,
completing Phase 3 of the page variables proposal. This enables
adding and removing page variables on existing pages without
requiring a full CREATE OR REPLACE.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: .claude/skills/mendix/alter-page.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -123,6 +123,22 @@ REPLACE footer1 WITH {
123
123
124
124
Replaces the target widget with one or more new widgets. The new widgets use the same syntax as `CREATE PAGE`.
125
125
126
+
### ADD Variables - Add a Page Variable
127
+
128
+
```sql
129
+
ADD Variables $showStockColumn: Boolean='true'
130
+
```
131
+
132
+
Adds a new page variable (`Forms$LocalVariable`) to the page/snippet. DataType can be `Boolean`, `String`, `Integer`, `Decimal`, `DateTime`, or an entity type. Default value is a Mendix expression in single quotes.
133
+
134
+
### DROP Variables - Remove a Page Variable
135
+
136
+
```sql
137
+
DROP Variables $showStockColumn
138
+
```
139
+
140
+
Removes a page variable by name.
141
+
126
142
## Examples
127
143
128
144
### Change button text and style
@@ -143,6 +159,14 @@ ALTER PAGE MyModule.Customer_Edit {
0 commit comments