Hello,
we noticed that a table view does not sort if the onSortCmd is set to none. We have lots of forms that were created with toggleFormCommands and now have this setting. In Servoy <3.5 the table did sort.
I suppose this is due to the changes in the sort area, that are very welcome! But clicking on the table header is not really what is meant by onSortCmd, ist it? I prefer not to walk over hundreds of forms… Can this be changed so tables will sort again? It will still allow me to overrule the default sorting behavior with a method, so new functionality will also be fine.
Thanks
Patrick
In Servoy 3.5 clicking on sort header does call the onSortCmd also passes the dataprovider being clicked and boolean if asc/desc.
This change was intentionally to make it possible to sort on more than one column when clicking on one tableview column header.
That’s fine, but could you add a check that if the onSortCmd is set to none it will just sort by that column as it has done before? I really appreciate the new functionality, but not, that current behaviour brakes. And in this case I think both is possible.
We have had the request in the past to prevent sorting on tableview (columns), this change does make it possible.
I see no possibility to have both without you checking onSortCMD for all tableview form… (also setting the sort to none did tell servoy to not allow the user to sort, which is enforced now in Servoy 3.5)
Well, couldn’t the customer that wants that simply attach a method to the onSortCmd that does nothing? For that customer the feature is new, so he cannot complain if he has little extra work. For me, current behavior is broken. I will have to go well over 200 table views to set the property to default. And after all, “onSortCmd” is not exactly the same as clicking on the table header.