Skip to Content
0
Oct 03, 2012 at 08:43 AM

Enable filtering on dynamically created table/columns

123 Views

Hi Community,

I have a table with columns which are created in method WDDOMODIFYVIEW, the table itself is in the layout, but without any columns.

Now I want to add the standard filtering possibility, for this I created an FILTER action and bound it to the table onFilter event.

In the UI now a new additionally row is rendererd, but it's not possible to set a filter value, as the cells are not enabled?

Do I miss sthg.?

Coding for a column, may I have to set another attribute too?

lo_dropdown = cl_wd_dropdown_by_key=>new_dropdown_by_key( id = lv_id

bind_selected_key = 'INTERNAL_CHANNEL.POSTING_COUNTRY'

view = view

on_select = 'DROPDOWN'

activate_access_key = 'X'

bind_read_only = 'INTERNAL_CHANNEL.READ_DROPDOWN').

lo_table_column->set_header( lo_caption ).

lo_table_column->set_table_cell_editor( lo_dropdown ).

lo_table_column->set_width( '10ex' ).

lo_table->add_column( lo_table_column ).

regards

Markus