on 10-26-2005 8:42 PM
Hello All,
I already implement table sorting in my application.How can i trigger a table sort action on a particular column after I have compeleted some other action?
Thanks
Hello vijay,
Type 'table sort' in 'Forum Search' field on main page of Dynpro forum, click 'Go' and you will get 818 result items for last 90 days describing various solutions and workarounds for your problem.
Best regards, Maksim Rashchynski.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use IWDNode.sortElements(Comparator).
The Comparator instance passed to this method should cast its arguments to the node element interface and compare them by the attribute displayed in the particular column.
Say your node is named "Employees" and the attribute is "Name" and has type "String", then it looks like
Comparator comparator = new Comparator()
{
public int compare(Object x1, Object x2)
{
IEmployeesElement e1 = (IEmployeesElement ) x1;
IEmployeesElement e2 = (IEmployeesElement ) x2;
return e1.getName().compareTo(e2.getName());
}
};
node.sortElements(comparator);
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.