cancel
Showing results for 
Search instead for 
Did you mean: 

SBO2004: Event Handling problems

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

The only solution I have come up with is to elegate all time-consuming operations to a separate thread thereby unburdening the main thread.

Former Member
0 Kudos

Hi Anton,

Please update your system. Version 2004 is no longer supported.

Regards,

Vítor Vieira

Former Member
0 Kudos
Please update your system. Version 2004 is no longer supported.

Hello, Vitor

I know this, but I can't update soon. So I hope somebody can either confirm this problem or suggest a solution/workaround. But OK, I will check this in SBO2007.

Anton

Former Member
0 Kudos

Bad news. In SBO2007 the same experiment leads to the addon' loosing connection and stopping handling any events. I checked this with an 8-minute delay.