Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

TableView initial sort

Hi,

I want to have an initial sort of a table and it should be done by the server. I know I could do it by application, but this is just a question if it is possible.

I found for the htmlb:tableViewColumn the attribute preSelectedSortDirection = "DESCENDING". But it seems that it is just showing the sort direction....

My tableView look like this one:

<htmlb:tableView id = "time"

table = "//model/tab_time"

emptyTableText = "do data"

selectionMode = "<%= selectionmode %>"

fillUpEmptyRows = "TRUE"

sort = "SERVER"

visibleRowCount = "3"

width = "100%" >

<htmlb:tableViewColumns>

<htmlb:tableViewColumn columnName = "personid"

title = "person"

sort = "TRUE" />

<htmlb:tableViewColumn columnName = "time"

title = "time"

edit = "TRUE" />

<htmlb:tableViewColumn columnName = "wdate"

title = "date"

edit = "TRUE"

sort = "TRUE"

preSelectedSortDirection = "DESCENDING" />

<htmlb:tableViewColumn columnName = "shortcomment"

title = "comment"

edit = "TRUE"

sort = "TRUE" />

</htmlb:tableViewColumns>

</htmlb:tableView>

Thanks for help,

Stefan Huemer

Not what you were looking for? View more on this topic or Ask a question