cancel
Showing results for 
Search instead for 
Did you mean: 

How to fetch properties of a table columns?

vimal
Active Participant
0 Kudos

Hi,

I have a table UI element in Webdynpro and have many columns.Now, i want to fetch it's properties dynamically e.g. visibility,read only etc..

So is there any way by which i can get all the columns of a table UI elment in an internal table and loop at it and check the properties of those columns.

Please suggest ways to achieve it.

Thanks,

Vimal

Accepted Solutions (0)

Answers (1)

Answers (1)

johannes_konings
Participant
0 Kudos

could this help:


DATA lo_table TYPE REF TO cl_wd_table.

data lt_COLUMNS Type CL_WD_TABLE_COLUMN=>TT_TABLE_COLUMN.

lo_table ?= view->get_element( ID = 'VIEW_NAME').

lt_COLUMNS = lo_table->get_columns( ).