on 04-12-2018 7:24 AM
hi,everyone!do you meet this issue : if i Multiple clicks the button at the same time,it wiil call odata service repeatedly!!!how do you solve it?do something limit for the button?
Hi Huang,
If your operation takes time and you need to block the user interaction while the OData call is going on you should use the Busy Dialog control to prevent any extra actions from the user, check the documentation below:
https://experience.sap.com/fiori-design-web/busydialog/
Busy Indicator can be used for specific UI controls but you should review both documentations to understand which one is more suitable for your scenario:
https://experience.sap.com/fiori-design-web/busy-indicator/
Hope this information helps.
Cheers,
Felipe
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
tanks Felipe de Mello Rodrigues!you did me a favor!!1
Hello,
Always include following code for avoiding Multi Clicks in custom action: oEvent.getSource().setEnabled(false);
//Again enable the button in success callback function and Error handling function
oEvent.getSource().setEnabled(true);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Huang,
You can disable the button and enable it in the success function of your oData call.
Or you can use busy indicator as Felipe has suggested.
Regards,
Suriya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.