Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CRM Web UI table sorting by date

EricYu0912
Product and Topic Expert
Product and Topic Expert
0 Likes
1,091

Hi all,

I have a question about CRM Web UI table sorting by date.

I tried to sort descending, but looks like it would be sorted alphabetically.

Coz Web UI has a standard function to sort, so is there anyway to solve it?

1 ACCEPTED SOLUTION
Read only

thalesvb
Active Contributor
0 Likes
808

Hello Eric,

You need to implement IF_BOL_COL_SORTING interface, and pass a instance of it into the SORT method call, parameter IV_SORT_CALLBACK.

If "Web UI has a standard function to sort" means the sorting options which shows when you click the column header, then you need to redefine EH_ONSORT method in the controller if you are in a Result view of a search page, or EH_ON_SORT in the context node if you are in any other kind of view.

Regards.

1 REPLY 1
Read only

thalesvb
Active Contributor
0 Likes
809

Hello Eric,

You need to implement IF_BOL_COL_SORTING interface, and pass a instance of it into the SORT method call, parameter IV_SORT_CALLBACK.

If "Web UI has a standard function to sort" means the sorting options which shows when you click the column header, then you need to redefine EH_ONSORT method in the controller if you are in a Result view of a search page, or EH_ON_SORT in the context node if you are in any other kind of view.

Regards.