Skip to Content

SAPUI5 setBusy on page not working

Hello All,

In my SAPUI5 application, I am using setBusy indicator while making API calls, all these days it was working fine and now all of a sudden it is giving the following error on browser console

Uncaught TypeError: Cannot read property 'Small' of undefined
    at Function.B.addHTML (BusyIndicatorUtils-dbg.js:84)
    at f.A (Control-dbg.js:719)
    at jquery.sap.script-dbg.js:64

From the attached snapshot of the code from browser source, looks like BusyIndicatorSize.js is missed out.

Regards,

Ragavendra

setbusy-error.png (25.5 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Mar 07 at 07:33 PM

    What version of UI5 are you using? How are you calling it?

    Regards,

    Jamie

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 08 at 06:07 AM

    Hello Jamie,

    Below is how I am setting the UI5 in index.html

    <script src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"
    	id="sap-ui-bootstrap" data-sap-ui-libs="sap.m"
    	data-sap-ui-theme="sap_belize">	
    </script>
    

    and I am invoking the setBusy as below

    var view = this.getView().byId("pageID"); 
    view.setBusy(true);

    Regards,

    Ragavendra

    Add comment
    10|10000 characters needed characters exceeded