on 12-28-2014 10:44 AM
Hi experts,
I created a simple view , in which I have included a Application header. Now whenever I click logoff button I defined a event handler in controller of the view. The event handler simply displays an alert .For this I used sap.ui.commons.MessageBox.alert. Sadly, it doesnt show the message and below error is generated in the console
I event tried to mention the jQuery.sap.require("sap.ui.commons.MessageBox"); statement before controller definition starts
Regards
Pavan
Hi Pavan, Check this example: JS Bin - Example
I don't know what is the problem, I'm checking the source code of button control and i can't reproduce the same error. Try to set the sap-ui-core.js in mode debug "sap-ui-core-dbg.js" to debug code or past your code to jsbin to check.
Regards,
Pau
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pau Marti,
I am using the latest Runtime 1.24 and I am using the sap.ui.commons library. I was trying to create a desktop / commons view rather than sap.m.
Please find the screen shots below
I replace the statement sap.ui.commons.MessageBox.show() with alert. I am able to see the alert when I click on Logoff button. However still the error message appears.
Here is what I get when I include sap-ui-core-dbg.js as my lib
Thanks
Pavan
Message was edited by: Pavan Bhamidipati
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.