on 10-03-2012 9:43 AM
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
Hi,
When we create a filter statically, we bind the filterValue property of TableColumn.
This property must be bound dynamically as well.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ok, found the solution, thanx
with set_filter_value method you can only bind static values, if you want to bind to context nodes/attributes you have to do this in the constructor of table column
lo_table_column = cl_wd_table_column=>new_table_column(
id = lv_id
bind_filter_value = 'INTERNAL_FILTER.POSTING_COUNTRY'
view = view ).
Markus
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.