cancel
Showing results for 
Search instead for 
Did you mean: 

How to show last added row of table UI element

Former Member
0 Kudos

Hi,

I have a table in my WDA application, where user can add row by clicking button. How can I ensure, that user will everytime see the last added row.

Example: My table has 20 of visible rows, user added (or are fetched from DB) 20 rows, now user click add button, but newly added row is hidden and user has to scroll to show them. How to scroll to this added row automatically.

Many thanks for answer!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

In your wddomodify view, you can get table reference and call method SET_FIRST_VISIBLE_ROW of class CL_WD_TABLE.

This takes input param as integer for which row index to be set as first visible row.

Hope this helps

Regards

Manas Dua

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

many thanks for your solution, I have used this one:

Regards Jiri