cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with column sorting.

Former Member
0 Kudos

Hello All,

I am having trouble sorting a table based on a column that has date_time information in it. In descending order for the same date(that has multiple entries with different times) it prints in following order:

12:00 PM

11:30 PM

11:30 AM

11:00 PM

11:00 AM

And also for one other column that contains text, it prints in wrong order. I am on 04 environment and using a single action for all the columns: sortTable that has following code:

wdContext.currentContextElement().setSort_Clicked(true);

g_sort_clicked = true;

//Sort the table

wdContext.currentContextElement().getTableSorter().sort(

wdEvent,

wdContext.nodeActivity_Details());

And in the doModify, I wrote:

if(firstTime){

//Get the refernce of Table UI element

IWDTable tbl_activity_details = (IWDTable) view.getElement("tbl_activity_details");

//Set the attribute for tablesorter

wdContext.currentContextElement().setTableSorter(

new TableSorter(tbl_activity_details,wdThis.wdGetSortTableAction(),null));

}

What could be the problem with those two columns, rest of the columns are fine.

Thanks and Regards

Srinivas

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Srinivas ,

Following links can be useful immensily.

1./people/bertram.ganz/blog/2006/03/07/enhanced-web-dynpro-java-tablesorter-for-sap-netweaver-04s

2./people/peter.vignet/blog/2007/01/03/generic-web-dynpro-java-table-filter

Hope this helps

Note- reward if useful