sorting Foundset

I try to sort records in a listview after performing a search, but nothing seems to work :cry:

This is my sort method:

forms.records.controller.sort('statusSort asc')

That must be enough to sort the foundset, right :?:

Let me share this too;
Dataprovider 'statusSort’is a calculation with this code

if(workstatus == 'Perform')
{
return 1;
}
if(workstatus == 'Wait')
{
return 2;
}
if(workstatus == 'Stop')
{
return 3;
}
if(workstatus == null)
{
return 4;
}

Hope this helps…

Did you make the calculation stored?

Thanks Harjo! That solved it :D . Like your ‘Direct Manager’ application, by the way. Looks good too!

Dutch: zegt het voort! zegt het voort! :lol:

:wink:

How did you do that with the custom startup icon in the client?

goto your Servoy-map: /lib/images
and change the servoy_client_icon.gif with your own.

Thanks! :idea: