cancel
Showing results for 
Search instead for 
Did you mean: 

forward and backward 20 records at a time in the same page

Former Member
0 Kudos

hi ,

i am trying to display 20 records per page. and i have next and previous buttons .when i click next displays next 20 records ie 20-40 recods simillarly reverse for back button also this is my requirment.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

I hpe you are using Table uielement . Then set the VisibleRowCount property of your table as 20. Create one attribute of type integer and bind it with FiestVisibleRow. set the initial value for this attrivute as 0. assume the name as "rowcount".

When you will press page down button, in the button event, add 20 to the current value of rowcount. do it till the value of row count is less than number of records in the table.

Do same while page up button is pressed.instead of adding, substract rowcount by 20 till it become le 0.

I hope this should work.

Thanks

Vishal Kapoor

Former Member
0 Kudos

hi,

but i am using alv table not in table ui element

Answers (1)

Answers (1)

abhimanyu_lagishetti7
Active Contributor
0 Kudos

create a context attribute of type integer

bind it to the first visible row property

and on Next button click increment its value by 20 till max records

on Prev button click decrease its value by 20 till 0

Abhi

Former Member
0 Kudos

hi, but i am using alv table not table ui element

abhimanyu_lagishetti7
Active Contributor
0 Kudos

logic remains the same use IF_SALV_WD_TABLE_SETTINGS~SET_FIRST_VISIBLE_ROW method.

Abhi