on 11-09-2007 6:43 AM
Dear Friends,
I have sorted the table column wise,but i am able to sort the column while string..
but if column contains integer numbers also the table is sorting according to String...
How to sort the table if my column values are integers....
Advance thanks
Shravan Kumar
Hi,
If you sorting using comparator simply use the code below.
Comparator comp=new Comparator() {
public boolean equals(Object obj) {
return false;
}
public int compare(Object o1, Object o2) {
IPrivateXXXView.IXXElement a=(IPrivateXXXView.IXXElement)o1;
IPrivateXXXView.IXXElement b=(IPrivateXXXView.IXXElement)o2;
int a1=a.getIntValue();
int b1=b.getIntValue());
if(a1>b1)
return 1;
if(b1>a1)
return -1;
else
return 0;
}
};
wdContext.nodeXX().sortElements(comp);
Regards,
Naga
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Friends
I am able to sort the table..but if want to use onActionLeadSelect(null) in the modify view of my webdynpro..I cant get the column id if i use onActionLeadSelct(null)
i tried to display the column id but it is null;
if i use onActionLeadSelect(null) in modify view. Is it possible to sort the table?
i need to use onActionLeadSelect(null) in my webdynpro?
IS there any relation betwen them
In ActionLeadSelect i have tried to use
wdContext.<node table name>.<currentresult>.<getColumnFieldData>
i am getting some column data in my Action lead....
Will there be any impact on my sort method
Thanks in Advance
Byeee
Yours Friend
Shravan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.