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
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
@@ -126,6 +126,30 @@ REPLACE footer1 WITH {
126
126
127
127
Replaces the target widget with one or more new widgets. The new widgets use the same syntax as `CREATE PAGE`.
128
128
129
+
### DataGrid Column Operations
130
+
131
+
DataGrid2 columns are addressable using dotted notation: `gridName.columnName`. The column name is derived from the attribute short name or caption (same as shown by `DESCRIBE PAGE`).
Copy file name to clipboardExpand all lines: docs-site/src/language/alter-page.md
+22-4Lines changed: 22 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -213,14 +213,32 @@ ALTER PAGE MyModule.Order_Edit {
213
213
};
214
214
```
215
215
216
-
### Add a DataGrid Column
216
+
### DataGrid Column Operations
217
217
218
-
Since DataGrid columns are part of the widget tree, use INSERT to add columns:
218
+
DataGrid2 columns are addressable using dotted notation: `gridName.columnName`. Use `DESCRIBE PAGE`to discover column names (derived from the attribute short name or caption).
Copy file name to clipboardExpand all lines: docs-site/src/reference/page/alter-page.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,6 +76,19 @@ Removes one or more widgets by name. The widget and all its children are removed
76
76
77
77
Replaces a widget (and its entire subtree) with one or more new widgets.
78
78
79
+
### DataGrid Column Operations
80
+
81
+
DataGrid2 columns are addressable using dotted notation: `gridName.columnName`. The column name matches the name shown by `DESCRIBE PAGE` (derived from the attribute short name or caption).
82
+
83
+
All four operations (SET, INSERT, DROP, REPLACE) support dotted column references:
84
+
85
+
```sql
86
+
SET Caption ='Product SKU'ONdgProducts.Code
87
+
DROP WIDGET dgProducts.OldColumn
88
+
INSERT AFTER dgProducts.Price { COLUMN Margin (Attribute: Margin) }
89
+
REPLACE dgProducts.Description WITH { COLUMN Notes (Attribute: Notes) }
90
+
```
91
+
79
92
### SET Layout
80
93
81
94
Changes the page's layout without rebuilding the widget tree. Placeholder names are auto-mapped by default. If the new layout has different placeholder names, use `MAP` to specify the mapping.
0 commit comments