cancel
Showing results for 
Search instead for 
Did you mean: 

Keep view in row selected in the table

Former Member
0 Kudos

Hello,

i have a webdynpro view with a table. This table has 256 records, and visibleRowCount property is set to 10 records.

My problem is when i selected the record number 174 for example, the scroll table returns to position 1 and i can not see the record selected.

How can i do for the scroll table keep the row selected in the table?

Thank you

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Try this.

1. create one context ctx_va_firstvisblerow.

2.get the leadselection record and set ctx_va_firstvisblerow context.write this code in wdDoModifyView.and also following code in wdDoModifyView.


 IWDTable table = (IWDTable) view.getElement("Ur table id");
    table.setFirstVisibleRow(wdContext.currentContextElement().getCtx_va_visiblerow());

3.Bind the ctx_va_firstvisblerow context to the table FirstVisibleRow.

Thanks

Abhilasha

Edited by: Abhilasha Dahare on Sep 14, 2010 3:35 PM