cancel
Showing results for 
Search instead for 
Did you mean: 

Table navigation

david_fryda2
Participant
0 Kudos

Hi everyone,

I have a table where the user can select lines via checkboxes.

After he selects the lines, he does press a button which do something.

After this, the view is reloaded ans the beginning of the table is displayed.

Is there a way to display the table where the user was just before pressing on the button ?

I do not want to get the last checkbox checked by the user...I want to display the table even at a line he didn't check the checkbox.

Thanks.

Regards

Accepted Solutions (1)

Accepted Solutions (1)

lajitha_menon
Contributor
0 Kudos

Hi David,

In the wdDoModifyView, you can set the leadselection of the table accordingly.

Calculate the index of the table line by the method getLeadSelection(). Save it in a context variable.

In the wdDoModifyView, use the method setLeadSelection() to set it to this variable.

cheers,

LM

Message was edited by:

L Menon

Answers (1)

Answers (1)

siarhei_pisarenka3
Active Contributor
0 Kudos

Hi David

I guess you can use 'FirstCheckedRow' property of a table. Like

int iRow = table.getFirstCheckedRow();
// do something

// restore first displayed row
table.setFirstCheckedRow(iRow);

BR

Sergei

david_fryda2
Participant
0 Kudos

Thanks guys.

The setLeadselection works good.

Regards.