cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Functionality to dynamically sort tableview columns

Former Member
0 Likes
973

Has anybody successfully tried sorting columns of a tableview component by clicking on its header? I need to sort a column containing dates in mm/dd/yyyy format. Please share your hints or code. BR, Maulin

View Entire Topic
Ulli_Hoffmann
Contributor
0 Likes

Hi maulin,

I assume your using the htmlb tag <htmlb:tableView>. In that case set the attribute 'sort' to 'SERVER'. In each column tag <htmlb:tableViewColumn> that you want to being sortable set attribute 'sort' to 'true'. That should do the trick.

regards,

Ulli

Former Member
0 Likes

Hi Ulli,

is this for EP5 only? I get an error under EP6 when using the sort attribute.

Caused by: com.sapportals.portal.prt.servlets_jsp.server.jsp.ParseException:  Attribute 'sort' not found in tag library 'HTMLB' for the tag tableView.

Kind regards

Francisco

Ulli_Hoffmann
Contributor
0 Likes

Hi Francisco,

seems like the implementation of the htmlb tag library is not consistent across technologies. You are right, it's not working in Java htmlb. We use BSP (it's JSP equivalent but ABAP scripting) and connect the EP to the WEB AS, where the BSP runs. The BSP htmlb has tons more of advanced features for tableView (like sort and filter).

regards,

Ulli