on 06-15-2012 3:02 PM
Hi,
is there a way to set colum optimization in FPM_LIST_UIBB dynamically?
Many THX and Best regards.
Create a enhancement in the view V_LIST method WDDOMODIFYVIEW -Post Exit and copy the code
DATA: lr_config TYPE REF TO cl_salv_wd_config_table.
IF wd_comp_controller->mo_alv IS BOUND.
*... Configure ALV
lr_config = wd_comp_controller->mo_alv->get_model( ).
lr_config->if_salv_wd_table_settings~set_fixed_table_layout( abap_false ).
ENDIF.
Its working I have tested in my system.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stefan,
There is not direct way to optimize column width but there is a work-around for it.
In the method IF_FPM_GUIBB_LIST~GET_DEFINITION after filling EO_FIELD_CATALOG with the statement
eo_field_catalog ?= cl_abap_tabledescr=>describe_by_data( it_output ) you can do the following:
DATA: lr_struct TYPE REF TO cl_abap_structdescr.
lr_struct ?= cl_abap_structdescr=>describe_by_name( 'SFLIGHT' ).
Here is the complete code:
DATA: lr_struct TYPE REF TO cl_abap_structdescr,
wa_components LIKE LINE OF lr_struct->components,
wa_field LIKE LINE OF et_field_description.
lr_struct ?= cl_abap_structdescr=>describe_by_name( 'SFLIGHT' ). "your structure name
LOOP AT lr_struct->components INTO wa_components.
wa_field-name = wa_components-name.
wa_field-width = ( wa_components-length + 2 ) * 5. "Convert char length to pixels
APPEND wa_field TO et_field_description.
ENDLOOP.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If you want to do that you can implement the enhancement in FPM_LIST_UIBB web-dynpro component.
Use a post-exit of method WDDOINIT in COMPONENTCONTROLLER of FPM_LIST_UIBB and use the following code:
DATA: lr_config TYPE REF TO cl_salv_wd_config_table.
IF wd_this->mo_alv IS BOUND.
*... Configure ALV
lr_config = wd_this->mo_alv->get_model( ).
<activate the feature of ALV column optimization like you do in web-dynpro ALV>
ENDIF.
No Ideas?
Attribute Horizontal Scrollbar is the way, but then the columns are not width optimized.
Pleas help.
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.