on 01-14-2010 4:33 PM
I have a wd4a app that displays an alv.
I have fixed the first two columns on the left.
The user can resize any of the columns .
A subset of my code is shown below.
Question: What do I need to do so that the user's resized column widths will persist from session to session.
Additionally, some columns are not shown by default, so the user can add or drop them from the display, so ...
...same Question on persisting which columns to display from session to session?
Thanks... ...Mike
...
l_value = l_ref_interfacecontroller->get_model( ).
lr_table_settings ?= l_value .
lr_table_settings->set_fixed_table_layout( abap_true ).
---------------------------------------------------------- *
* High Level Grid Config - Functions *
* ---------------------------------------------------------- *
lr_standard_functions->set_edit_check_available( abap_false ).
lr_standard_functions->set_display_settings_allowed( abap_true ).
lr_standard_functions->set_filter_complex_allowed( abap_false ).
lr_standard_functions->set_sort_headerclick_allowed( abap_true ).
lr_standard_functions->set_filter_filterline_allowed( abap_false ).
lr_standard_functions->set_dialog_settings_allowed( abap_true ).
* ---------------------------------------------------------- *
* Column Level Config *
* ---------------------------------------------------------- *
lr_column = lr_column_settings->get_column( 'PROJECT' ) .
lr_column->set_fixed_position( cl_wd_abstr_table_column=>e_fixed_position-left ) .
lr_column->set_resizable( abap_true ) .
lr_column->set_width( '80' ) .
* ---
lr_column = lr_column_settings->get_column( 'PROJECT_NAME' ) .
lr_column->set_fixed_position( cl_wd_abstr_table_column=>e_fixed_position-left ) .
lr_column->set_resizable( abap_true ) .
lr_column->set_width( '240' ) .
* ---
lr_column = lr_column_settings->get_column( 'ORG_UNIT' ) .
lr_column->set_visible( '00' ) .
* ---
lr_column = lr_column_settings->get_column( 'BFR' ) .
...
more...
>Question: What do I need to do so that the user's resized column widths will persist from session to session.
Unfortunetely, column resizing using the ALV doesn't persist. Column resizing on a normal table UI element does persist as a personalization, but the dynamic nature of the ALV wrapper around the table eliminates this functionality. It is something SAP is currently investigating for possible future functionality.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.