Hi
I feel kind of stupid to ask this…
I was expecting to define this in the screens xml definition, but could not find how. My question is related to Cannot declare initial Table sorting by column(s) in XML - CUBA.Platform
I could not open the linked issue in the post - so I do not know the issue status…
My current implementation is this (in the screen controller)
@Subscribe
public void onAfterShow(AfterShowEvent event) {
singleActorsTable.sort("identifier", Table.SortDirection.ASCENDING);
}
From - Setting a default sorting order for Table - #7 от пользователя kenince.mbithi - CUBA.Platform - I gather I am not totally of…
My questions:
- Is there a way to define this in xml?
- If not, is anything wrong with the way I found?