mendixlabs / generator-mendix

Yeoman generator for Mendix widgets
MIT License
17 stars 15 forks source link

mx.ui.action does not work as expected in popups #28

Open Andries-Smit opened 7 years ago

Andries-Smit commented 7 years ago

Sharing some information: https://github.com/mendix/generator-mendix/blob/master/generators/app/templates/WidgetBoilerplate/src/WidgetName/widget/WidgetName.js.ejs#L76

Found a limitation on the https://apidocs.mendix.com/6/client/mx.ui.html#.action Though documentation states that origin: this.mxform is not needed, it is not completely true. It is not working for full pages but does not work for popups. So this call action will close the page but not a popup. : (

So I think we need to reintroduce the origin again.

Cheers.

Andries-Smit commented 7 years ago

The deprecated variant of Mendix 5 was named caller not aware about the origin...

JelteMX commented 7 years ago

Yeah my comment was removed because I spotted my own error ;-). We'll reintroduce origin I guess, and revert back to mx.data.action