We have a button list button on Order (Bill Now Button). It opens a VF page and executes some actions. After clicking the button, it take a while to be redirected to the VF Page. Some users click it twice or more. When clicked more than once, it displays an this error.
Update failed. First exception on row 0 with id 8016E0000001vPJQAY; first error: UNABLE_TO_LOCK_ROW, unable to obtain exclusive access to this record: [] Error is in expression '{!init}' in component in page jvco_billnow: Class.JVCO_BillNowLogic.tickBillNow: line 102, column 1 Class.JVCO_BillNowLogic.init: line 72, column 1
There's no effect on the code execution but we are getting this nasty error. Is it possible to disable the list button after a click? This related list is on account.
Check the image below.