on 06-28-2017 6:40 AM
Hi All,
I have a dialog box in my sap UI5 web page. When a user clicks on a button( say OK) in the dialog box, the control passes over to DPC class where some code execution takes place. It takes around 2-4 seconds for the code execution at ECC end.
Meanwhile, if the user again clicks on OK button, the other items in my screen are also executed. Is there a way, where clicking on the button is no longer possible until the execution at ECC end completes.
Kindly suggest.
Thanks
Meenakshi
Hi Meenakshi Raina,
Put a busy indicator sap.ui.core.BusyIndicator.show(0) till the request is processed .
thanks
Viplove
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @VIPLOVE KHUSHALANI
Thanks for the reply. Where should I use this indicator ?
var oButton9 = new sap.m.Button("Waive1", { text: "OK", press: [oController.Execution, oController] });
or
in the method ?
If you still want to allow the user to make changes to the dialog, then you can use the setBusy() method on the button.
e.g. before you call the create on your oModel, call oEvent.getSource().setBusy(true);
Then in the success and error callback functions, use sap.ui.getCore().byId("Waive1").setBusy(false);
Or you can use the sap.ui.core.BusyIndicator.show() and sap.ui.core.BusyIndicator.hide() if you want to block the entire screen.
disable the button when you make call to backend, enable it when the call is finished
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.