Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8372

Re: events and ids

$
0
0

Question 1:
Use event.getSource(), it'll return the control which raised the event.

 

 

Question 2:

I'm pretty sure you cannot set an ID to a XML view automatically generated (Router). If you are creating your XML view manually (using JavaScript), so you can set an id like in the example below.

 

oPage = new sap.ui.xmlview("mainview", "sap.ui.demo.wt.view.App");

 

 

You can check this link for more information: https://openui5.hana.ondemand.com/index.html#docs/guide/5da591c5a5a54740948acfe56b22fbc3.html


Viewing all articles
Browse latest Browse all 8372

Trending Articles



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