cancel
Showing results for 
Search instead for 
Did you mean: 

Trapping Events

Former Member
0 Kudos

Hi

I am currently reading the contents of a matrix and updating certain cells (sbo 6.5). I am currently doing this by trapping the lost_focus event, this is not very efficient as the system seems to generate lots of lost_focus events. I have tried using the validate event instead, which only occurs once when you leave a field. The problem I have is that if I update another field in the matrix the system seems to get stuck in a loop as it keeps on generating validate events

Can anyone give me any ideas please ?

Regards Andy

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

As well as checking the EventType is a validate event, are you also checking that you only run your code when the ColUID matches the one you want to trigger your code from?

John.

Former Member
0 Kudos

Hi John

I am trapping for this, I seem to get better results using the lostfocus rather than validate for some reason. That just gives me loads of events. I am wondering if it might be better to upgrade the customer to 2004, I am sure matrix development and hopefully events are better in 2004

Regards Andy

Former Member
0 Kudos

Hi Paul

I'm doing something similar like you with 2004. I also use LostFocus because the other Events didn't work as expected by me. I used ItemChanged first but I have also to track default values so i stick with LostFocus.

If anybody has a better solution please let us know.

Greets

Phil

Former Member
0 Kudos

Hi Phil

Did you ever run your solution with sbo 6.5 ? was there an improvement when you went to 2004 ?

I am just wondering if it might be upgrading the customer

to 2004

Regards Andy

Former Member
0 Kudos

Hi Phil

Just made a bit of a break though, I am now filling the matrix via a user data source and that seems alot better, SAP doesn't seem to be firing off any events after I update my totals

Not sure if it will help you

Regards Andy