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?
Posts: 23
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

is independent of

Code: Select all

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
User avatar
Posts: 206
Joined: Mon Sep 28, 2009 1:56 pm

Return to Development