Bug
SHOW_PAGE with $currentObject parameter binding in DATAGRID CONTROLBAR generates an invalid Mendix expression, causing CE0117.
MDL input
DATAGRID dgOrders (DataSource: DATABASE FROM MyModule.Order, Selection: Single) {
CONTROLBAR cb {
ACTIONBUTTON btnView (
Caption: 'View',
Action: SHOW_PAGE MyModule.Order_Detail(OrderParam: \$currentObject),
ButtonStyle: Primary
)
}
COLUMN colNum (Attribute: OrderNumber, Caption: 'Order')
}
Result
mxcli creates the page and button, but `mx check` reports:
```
CE0117 Error(s) in expression. Action button 'btnView' Page 'Order_Overview'
```
The generated parameter binding expression for `$currentObject` is invalid in the Mendix model.
Expected
The button should correctly pass the selected DATAGRID row to the target page parameter.
Bug
SHOW_PAGEwith$currentObjectparameter binding in DATAGRID CONTROLBAR generates an invalid Mendix expression, causing CE0117.MDL input
Result
mxcli creates the page and button, but `mx check` reports:
```
CE0117 Error(s) in expression. Action button 'btnView' Page 'Order_Overview'
```
The generated parameter binding expression for `$currentObject` is invalid in the Mendix model.
Expected
The button should correctly pass the selected DATAGRID row to the target page parameter.