Is there any tip to return the sorting of a tableview form to the initial sort?
What I´m actually doing is place a button that sorts the foundset with the initialSort string, but maybe there is a trick to do that without code.
Thanks in advance
Is there any tip to return the sorting of a tableview form to the initial sort?
What I´m actually doing is place a button that sorts the foundset with the initialSort string, but maybe there is a trick to do that without code.
Thanks in advance
jasantana:
without code
Maybe I don’t understand this correctly, but how do you expect anything to happen without running code?
Hi Joas. Maybe I did not explain myself.
When the user clicks on the headers of a tableview form Servoy changes the order of the records and I do not write any code to do that. What I´m asking is if the user can set the order to the initialSort by doing what ever, for example doublecliking on the header.
Thanks
You could store the initial sort in a variable in the onShow event of the form (only whent eh firstShow param is true, by retrieving the foundset sort.
Note that I suggest to use the onShow, as in the onLoad the foundset isn’t loaded yet. also note that if the foundset is shared between multiple forms, the initial sort of the first form that gets loaded that uses the foundset is used: the user might have already altered the sorting on that or another form, so it’s not 100% foolproof.
Paul