on 04-24-2007 7:40 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.