on 01-13-2014 10:02 AM
Hello
I display some data in a ALV table, which works fine. However I try to customize.
I use the configuation model cl_salv_wd_config_table in View method DDOINIT, where so e.g. I like to have table design as 'alternating' and as default. .
My code is as following:
* GET the ALV configuration model
* instantiate component ALV
data lo_cmp_usage type ref to if_wd_component_usage.
lo_cmp_usage = wd_this->wd_cpuse_alv( ).
if lo_cmp_usage->has_active_component( ) is initial.
lo_cmp_usage->create_component( ).
endif.
* Get the model from use ALV controller
data lo_interfacecontroller type ref to iwci_salv_wd_table .
lo_interfacecontroller = wd_this->wd_cpifc_alv( ).
data lv_value type ref to cl_salv_wd_config_table.
lv_value = lo_interfacecontroller->get_model( ).
*------------------------------------------------------------------
* Display and format of ALV grid
*Set design of ALV Table ' alternating color'
lv_value->if_salv_wd_table_settings~set_design( value = cl_wd_table=>e_design-alternating ).
*---------------------------------------------------------------
My issue:
Some how the default values (standards) in the applikation overwrites the above coding ( see picture bellow). Sure I can change afterwards in the settings bellow. Hovever I like to make 'alternating' as default when initiating.
So please have you a good advice, what I could do better so it works as intented.
Best regards
Christian
Hi,
The readonly property of table needs to be set.
Pls add the below code.
lv_value->if_salv_wd_table_settings~set_readonly ( abap_true).
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.
Hello Rama
I did, what you have proposed.
Hover the strange thing is, that the application is working as intended, when my colleague is starting it- another user-.
It seems, as I would have some personel presettings in the standard view.
Do you have any idea?
Thanks already for your valuable inputs above.
Best regards
Christian
Hi,
From the screenshot, I can see that you used sorting on a column. Did you write some code in WDDOMODIFYVIEW method to set sorting on that column?
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
26 | |
9 | |
9 | |
7 | |
6 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.