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

How To Fire An Event

$
0
0

Hello,

 

I would like to fire an event from my control and listen to that in another control.

 

I know this can be done with a publish subscribe mechanish using busevent

 

var bus = sap.ui.getCore().getEventBus();

bus.publish("MY_EVENT");

 

I would however not want to do it this ways as I think its very lose in nature.

 

I would like to fire an event from control A and then be able to listen to it in control B on the instance of A say oA.

 

Whats the best way to fire an event?

Please help!

 

Thanks

Amjad


Viewing all articles
Browse latest Browse all 7790

Trending Articles



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