cancel
Showing results for 
Search instead for 
Did you mean: 

Uncaught TypeError: Cannot read property 'delayedCall' of undefined

bpawanchand
Active Contributor
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

PMarti
Active Participant
0 Kudos

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

bpawanchand
Active Contributor
0 Kudos

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