on 09-18-2008 6:09 PM
Hi all,
I am using TableSorter.java class for many table in my wd4j DC.
The class version is from https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3287
I have got a problem only for one column of my table. When I click the sorter icon, the data are sorted but the icon disappear.
My wd is rendered into EP.
NWDS: 7.0.11
JDK: 1.4.2_9
SAP-JEE: 7.0.14
in my wdDoModifyView
if (firstTime) {
view.nowCreateAllCustomExtensionFields();
IWDTable table = (IWDTable) view.getElement("Table");
wdContext.currentContextElement().setTableSorter(new TableSorter(table, wdThis.wdGetSortAction(), null, new String[] {"first_column_id", "second_column_id"}));
in onActionSort method
wdContext.currentContextElement().getTableSorter().sort(wdEvent, wdContext.node<table_source_node>());
Any advice?
Thanks for your replies.
Best regards,
Mirco.
replace
if (firstTime) {
view.nowCreateAllCustomExtensionFields();
IWDTable table = (IWDTable) view.getElement("Table");
wdContext.currentContextElement().setTableSorter(new TableSorter(table, wdThis.wdGetSortAction(), null, new String[] {"first_column_id", "second_column_id"}));
by
if (firstTime) {
view.nowCreateAllCustomExtensionFields();
IWDTable table = (IWDTable) view.getElement("Table");
wdContext.currentContextElement().setTableSorter(new TableSorter(table, wdThis.wdGetSortAction(), new Hashtable(), new String[] {"first_column_id", "second_column_id"}));
else
. check onSort action is assigned to proper method/event
. check TableColumn IDs are correct.
nikhil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
for this check the propert of table column sortState.
Thanks and regards
Trilochan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.