Hello Experts,
I have the following scenario:
1) A button is defined in view
2) An event handler is attached to the button ('onSubmit').
How can I get the view object from the onSubmit function?
this.getView() won't work because this is not the controller.
p.s
I can always get the view by sap.ui.getCore().byId("viewid") - but I don't want to use a constant name
Regards,
Omri