Skip to Content
0

SAPUI5 setBusy on page not working

Mar 07 at 06:11 PM

61

avatar image

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)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Jamie Cawley
Mar 07 at 07:33 PM
0

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

Regards,

Jamie

Share
10 |10000 characters needed characters left characters exceeded
Ragavendra Chinnaiah Mar 08 at 06:07 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded