cancel
Showing results for 
Search instead for 
Did you mean: 

Problem regarding Table Sorter

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

Check this

Regards

Ayyapparaj