While I could work around this by doing something like this:
WebPage1.WebButton.Pressed
if bIAmProcessingEvent = true then
system.debugLog CurrentMethodName + " multiple events, ignored"
return
end if
bIAmProcessingEvent = true
[ ... do stuff ... ]
bIAmProcessingEvent = false
this would require me to add a tremendous amount of extra code and logic to my WebApp.
I think this is something that the framework should handle for us.
As it currently works, this is a big difference in function between Desktop and Web:
On Desktop, you generally can’t trigger one event while another one is being processed. - And, if you do, the second event will only happen after the first event’s handler has completed, not before.
Yeah, the web is asynchronous and you have to build your app around that. My best results come from adding even more back and forth to the communication, it’s not an optimal solution.