cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

sapui5 button Multiple clicks at the same time!

0 Kudos
3,266

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?

View Entire Topic

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);