Skip to Content
0
Former Member
Jul 01, 2009 at 09:28 AM

SBO2004: Event Handling problems

39 Views

Hello, all

I have noticed a very peculiar thing about the way SBO handles events.

I wrote a handler for the et_VALIDATE event on an EditText item (Sales Quotation->Customer) which does nothing but waits for two minutes. Then I performed the following experiment:

Opened a sales quotation from in the Add mode, chose a Customer and added an item. Them I put the cursor into the Cusotmer field and pressed "Add". As a result, my event handler fired, so SBO was "frozen" for two minutes. But when the handler had completed nothing happened. The quotation wasn't added, although I didn't set BubbleEvent to false in the eventhandler.

However, when I reduced the wait time to 30 seconds in the event handler everything started to work as it should: after completion of the eventhandler the quotation got added.

Looks like if the handler of the preceding event (VALIDATE) executes for too long the following event (ITEM_PRESSED) may not fire at all...

I this a correct behavior?

Thanks in advance,

Anton

PS: I was testing in SBO2004