Skip to Content
0

Busy Indicator loading in debug mode but not while running

Jan 25, 2017 at 04:29 AM

57

avatar image

Hi Experts,

I am facing the below issue in fiori regarding busy indicator.

In route matched i have written the below line to put busy indicator in detail page.

this.getView().byId("detailPage").setBusy(true);

After Odata Read request i closed the busy indicator in success and failure both.

this.getView().byId("detailPage").setBusy(false);

During debugging the busy indicator is getting loaded properly and closed after odata success/failure but while running its doesn't show up at all.

Regards,

Arpit

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Radek Chudziak Jan 25, 2017 at 02:13 PM
1

It may be because of the Busy Indicator property of the detail page. By default it is set to 1000ms and your data read may take less than that. Hence it doesn't kick in but in debugging it does as it takes longer than 1000ms (you are pausing it). Try changing the property to 0 and check if it kicks in right away.

Share
10 |10000 characters needed characters left characters exceeded
Jun Wu Jan 25, 2017 at 01:18 PM
0

js is single thread, if u turn on/off the busy indicator in the same method, I think it won't work.

Share
10 |10000 characters needed characters left characters exceeded