on 09-19-2014 4:51 PM
Hiya,
I've created a nice (non-ALV) table in web dynpro.
It's lovely, the only problem is that the width of the table columns always adjusts to the column contents.
So a narrow column when it just says 'Pizza' but a wider column when it says 'Chicken Rojan Josh'.
This leads to a disjointed user experience when scrolling down the table contents.
I thought this'd be easy but I can't seem to figure out how to stop the table columns from resizing?
Would anyone know?
Thanks in advance!
Hi,
Set the check box of property fixedTableLayout of table and you need to set the width of columns manually , so that the column width remains same at all the time.
Refer the help document;
Table Properties - Web Dynpro ABAP - SAP Library
Hope this helps you.
Regards,
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the info!
One thing that confuses me is the size unit for width. I would like the size to be 10 characters, which unit would most closely resemble a character is it ex?
Thanks in advance!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You need to set the fixed layout of the ALV table , to avoid re-sizing.
Below is the sample code.
DATA: lo_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
lo_INTERFACECONTROLLER = wd_this->wd_cpifc_sflight_alv( ).
DATA; lv_value TYPE ref to cl_salv_wd_config_table.
lv_value = lo_interfacecontroller->get_model( ).
lv_value->IF_SALV_WD_TABLE_SETTINGS~set_fixed_table_layout( abap_true ).
Thank You,
Harsha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.