Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to place a loading gif before the load of a view?

Hi experts,

I am trying to place a loading gif before the load of a view, similar to fiori custom launch pad.

Tags:
Former Member
replied

Hi,

1.Write this code in your HTML page:

               <script>

                    var oBusyDialog=new sap.m.BusyDialog("oBusyDialog");

                     oBusyDialog.open();

               </script>

2.And in your controller js:

          onAfterRendering: function() {

                 sap.ui.getCore().getElementById("oBusyDialog").close();

         }

Try this

1 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question