2nd instance of form in tabpanel not sorted

Servoy 2.2rc9, Java 1.5, Linux…

We have a tab-panel which has two different instances of the same form (via different relations). The form has an initialSort set.

For the first instance of the form, the initialSort works OK. But… the second instance ignores the initialSort.

Thanks,
Neale.

The initial sort is applied when not sorted yet, useSeparateFoundset to get a differently sorted foundset at the same time

Thanks for the suggestion. Unfortunately it didn’t help - i.e. the 2nd instance of the tab-panel remains unsorted :-(

Regards,
Neale.

Hi Neale,

We’ve done some testing and
what’s (probably) happening is following:

1)assume you have 2 relations A and B used for pointing to the same childform (tabpanel)
2) before showing one of the 2 tabs, you are doing somethng in a script with let’s say relation A. (eg. var x = relationA.myField)
The moment you’re touching this relation , the foundset (query) of the form is being initialised, causing to override the initialSort property of the form.
3) Now when you go to the TAB based on relation A, you’ll see the sort doesn’t work, but the TAB on relation B does.

We’ve tried various workarounds but none of them are very reliable.

After release 2.2 we’are going to move the initialSort property to the relation editor to make sure the relation is always initialised properly.