cancel
Showing results for 
Search instead for 
Did you mean: 

Progress Indicator in mobile

Former Member
0 Kudos

Hi ,

I am developing a sample application.

I am doing item search for tablets using SAP UI 5.

After the user types filter for item search ,until the result comes up , I want to show the progress of the search process.

Please let me know how to do it ?

Regards,

Madhumitha

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Madhumitha,

                         If you are making a oModel.read then you can use the following code

var busyDialog = new sap.m.BusyDialog({

     title : "Loading Data",

text : "Loading Data..."

};

var fnSuccess = function(){

busyDialog.close(); // Close Busy Dialog and do further Processing

}


var fnError = function(){

busyDialog.close(); // Close Busy Dialog perform Error Handling

}

oModel.read("/ItemDetails",

  null, "search="+searchQuery, true,fnSuccess,fnError);

busyDialog.open();



Regards,

                 Pruthvi.

Former Member
0 Kudos

HI Pruthvi,

Your answer was helpful .

For scenarios where i do entity read , i will use your code.

For enity read , i have success method where i close the indicator dialog.

How about scenarios where i use entity set filtering ???

Answers (2)

Answers (2)

naveen_inuganti2
Active Contributor
0 Kudos

Check this... you can try same with sap.m library files.

http://scn.sap.com/docs/DOC-45343

Regards,

Naveen

Former Member
0 Kudos

Naveen,

Your example is based on setting the time after which the indicator should close.

I dont want it like that .

The progess indicator should close when there is error in completing the call or when the call is completed successfully

ChandraMahajan
Active Contributor
0 Kudos

Hi,

yes it is possible by using BusyIndicator UI element.

you can see examples at SAPUI5 SDK - Demo Kit

I created demo example and you can see the code and output at JS Bin - Collaborative JavaScript Debugging

Regards,

Chandra

Former Member
0 Kudos

Mahajan,

You have given a simple code example.

I have the progess indicator to be integrated with entity set filtering or etnity read Odata call.

The progess indicator should close when there is error in completing the call or when the call is completed successfully