Sort records in tabpanel not working ?

I execute sortRecords mehod on

OnShow property of a form include in a tabpanel.

Here you find the code :

application.sleep(1000)
//controller.sortDialog(String)
controller.sort('zicd_dt_zipcode asc, zicd_dt_city asc')

The sort is not done if I remove the sleep instruction, when I use sortDialog the sort is always done ???

:?:

Is there anyone that experience the same problem ?

:?:

If the tab panel shows related data, then the sort property does (currently) not work. Does your tab panel show related data?

are you saying if you do sleep it is done? and if you don’t sleep it isn’t?

Yes , the tabpanel shows related data.

I display on that tabpanel the zipcode / city linked to a country, but I would like to sort them because I want display them sorted by zipcode, city.
I will make another test using unrelated form.

Thanks for information. It seems that we can go around using application.sleep method to force the sort.

DomTom.

:o

I don’t really understand your sleep method. You say if you put Servoy to sleep for a while and sort after that, it does sort?