This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information

valuesChanged event order?

General questions regarding the development with JVx.

valuesChanged event order?

Postby johnit » Wed Nov 22, 2017 10:32 am

I use the eventValuesChanged() and eventValuesChanged(column) of one databook in my screen. The values changed listener with the column throws a SilentAbortException in some circumstances. The general values changed event changes some flags.

My problem is that I can't define the order of the events because my values changed event for one column should fire before all other values changed events. Is there a property or an option to define the event order?
johnit
 
Posts: 45
Joined: Fri Nov 16, 2012 5:58 pm

Re: valuesChanged event order?

Postby Support@SIB » Wed Nov 22, 2017 10:40 am

You can't define the order of independent event types, which means:

Code: Select all
eventValuesChanged()

is independent of

Code: Select all
eventValuesChanged(column)


It's possible to configure the event order for each event type via:

Code: Select all
addListener(..., index)

The addListener method has an index as last parameter.

You should know that the general values changed event will be fired before the column related values changed event.

If you have dependencies between your listeners, you should use only general values changed listeners or only column related listeners. It's easy to check for column names:

Code: Select all
event.isChangedColumnName("NAME")
User avatar
Support@SIB
 
Posts: 353
Joined: Mon Sep 28, 2009 1:56 pm


Return to Development