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

How to define SAP UI5 Event Handlers while not using MVC Pattern?

$
0
0

We were having an issue in IE9(Quirks Mode) SAP MII Portal where SAP UI5 pages were not getting loaded and it is because of the MVC Pattern what we were using to define separate view and controller page. So, we are now using view and controller as a simple javascript file and defining the UI5 controls to overcome the IE9 portal issue. But SAP UI5 has its own event handlers like "onAfterRendering"/"onInit"/"onBeforeRendering", so using  simple JS file (not using MVC), these functions can not be called by itself. Other simple functions like Button Press/Link Press, they all are working fine defined in the controller page.

 

This is what we are doing right now, but its not working.

 

function onAfterRendering() {

alert("OnAfterRendering");

}


So if anyone has any idea about it, please share, it will be highly appreciated.

 

 

Thanks always,

Ushinar


Viewing all articles
Browse latest Browse all 8150

Trending Articles



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