Skip to Content

Uncaught TypeError: Cannot read property 'delayedCall' of undefined

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Dec 28, 2014 at 11:12 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • 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

      1.jpg (55.6 kB)
      2.jpg (32.2 kB)
      3.jpg (49.5 kB)
      debug.jpg (168.9 kB)