Change in behaviour for onRecordSelection triggers in 2.1?

I always had a problem in version prior to 2.1beta where a method set by a form to trigger onRecordselection would not always trigger if navigating from a found set in a list view to a particular record in form view, even if both were set to use separate found sets. This was most apparent if only 1 record was loaded in the list view - going to form view would not trigger the onRecordSelection method.

In 2.1beta this seems to be changed as the selection method triggers every time, which is the behaviour I want!

Can anyone else confirm that this is a change?

I do not fully understand your statement, in Servoy 2.1 beta3 it will do the following:
onRecordSelect is triggered when the form is visible (as main of as tabpanel) when the selection on his foundset is changed via recordIndex or method.

What I was expecting was that the onRecordSelection method would also trigger when new records are loaded into the form and the form is then shown. Prior to 2.1 beta 2 this did not happen but in beta 2 it did! Now in beta 3 it does not trigger unless you are on the form and then select a new record - as you state.

I make extensive use of onRecordSelection methods to show and hide elements etc dependent on the state of the record being viewed - these methods must trigger every time the record is shown. In order to make this happen now, I must add the onRecordSelection method to an onShow method so that it triggers when the form is shown AND when the record is changed in the form.

Is this the best way to ensure that the method triggers every time a record is shown in a form?

drookwood:
I must add the onRecordSelection method to an onShow method so that it triggers when the form is shown AND when the record is changed in the form.

This is indeed the best way todo (onRecordSelect is only triggered when visible, this saves quite some performce since it is posssible to have many forms on the same foundset, onshow is the way out to get non visible forms in sync.)

It’s always nice to know you’re on the right track!

Thanks for the confirmation