Documentation

Trace: Sort Combobox

(visionx)

Sort Combobox

Usually the records in a combobox are default sorted by the database. The sort order can differ between different databases. To have the same sort order independent of the database system, it's a good choice to set a sort definition. This is currently only possible with source code.

((ILinkedCellEditor)UICellEditor.getCellEditor("COLUMN_NAME")).getLinkReference().getReferencedDataBook().setSort(new SortDefinition("SORT_COLUMN_NAME"));

The sort definition can be set on the Combobox editor directly. Simply get the editor from the column which shows the Combobox and set the sort definition with the column you want to sort.

This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information