cancel
Showing results for 
Search instead for 
Did you mean: 

set table page after sorting

Former Member
0 Kudos

I have added sorting to one of the columns in my table whose visiblerowcount is set to 10.When i go to second page which shows rows from 11-20 and select sort it doesnt goes to the first page.It remains on the current page.Can somebody help me out on how to go to the first page after sorting with first page showing the sorted column.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

In the method which sorts the Table ad the coding at last.

IWDTable tab1=(IWDTable)view.getElement("Table_0");

tab1.setFirstVisibleRow(0);

Try to do this in DoModifyView.

Regards,

Arunagiri.

Former Member
0 Kudos

Hi Arunagiri A,

I am not able to write this code in the my sort method as it gives me error in (IWD Table)<u>view</u>

Former Member
0 Kudos

Hi,

You can create an attribute of type int, bind it to the FirstVisibleRow property of table UI element and then set its value in your method.

wdContext.currentContextElement().set<attributename>(<value>);

Regards,

Murtuza

Former Member
0 Kudos

Hi Murtuza,

thanks alot..its working..

Reinuka.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

use the method setFirstVisibleRow(value);

which row should be the first visible, counts from zero.

Regards

Ayyapparaj