cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the first visible column of a table?

0 Kudos

Hello everybody,

I am working with a normal table (not ALV) and want to know the first visible column of a table, to set the focus to it. Because the Admin can change the standard position of the columns in configuration editor and the even the user can columns hide, it's needed to read at runtime the first visible column out. Or maybe there st an other possibility I doesn't know, you can set the focus to the first column of a table.

Thanks for reply and

kind regards

Christian

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi christian.........

you can use the method get_first_visible_scroll_coll in class cl_wd_table.

---regards,

alex b justin

0 Kudos

Hi alex,

the value for the first_visible_scroll_coll is empty or initial. I think this is only for the table attribute firstVisibleScrollableCol. And that is not used.

thanks and

kind regards

Christian

Former Member
0 Kudos

hi christian.....

try using get_master_column or get _columns where you can get all the columns and use the first one.

---regards,

alex b justin

0 Kudos

Hi Alex,

also Master column is initial, because I don't use it.

The Problem is, I can take the attributes of a column from the view in the wdmodifyview. But the get_fixed_position( ) and get_visible attributes are the designtime values and not the current at runtime the user see.

Kind regards

Christian