Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3167

How to get view object from control method

$
0
0

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


Viewing all articles
Browse latest Browse all 3167

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>