Quantcast
Channel: SCN : All Content - Web Dynpro ABAP
Viewing all articles
Browse latest Browse all 3667

Manage ALV format : if_salv_wd_table_settings~set_design

$
0
0

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

 

 

Standrad view alternating.gif


Viewing all articles
Browse latest Browse all 3667

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>