cancel
Showing results for 
Search instead for 
Did you mean: 

firing events indirectly

Former Member
0 Kudos

Hello

I wonder if this is possible...

I wrote some handler that reacts to validate event when I'm changing some values in one of matrix cell.

I got some other handler that changes this cell value.

And now I want to make this first handler fired after this second handler occurs automatically. Sort of indirect event chaining.

Thanks in advance

I use B1DE.

Edited by: kamil_w on Aug 24, 2009 2:22 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member682029
Contributor
0 Kudos

Did you check how the matrix cell value is being changed?

Use datasources to set / get values to the matrix.

Anoop

Former Member
0 Kudos

I already use data source.

But my reasoning is this -

if validate event fires because some value changes it should also fire when i change this value indirectly

(by modifing some other value that in turn changes my first value)

I have quantity, quantity1, 2 etc.

If I change for example quantity1 it calls some method. Now I have other filed named percent 1 that changes quanity1 and I want the same method to be fired when I change percent1 field. I call it chaining, indirect event handling but the idea is, I think,

clear.

Maybe I'm missing something obvious.

Thanks

Former Member
0 Kudos

Hi kamil_w,

You must handle the Validate events when pVal.InnerEvent = False. This way the you'll only manage the event for "indirect" changes.

Check if you have that condition in your code.

Regards,

Vítor Vieira