on 07-23-2014 2:46 AM
hi:
I created a ALV list in web dynpro for abap application.I used a method which name 'SET_FIXED_TABLE_LAYOUT'. this application is Success in ie8 , but it's fail in google chrome
in ie8
in google chrome
code
DATA lo_nd TYPE REF TO if_wd_context_node.
DATA lo_el TYPE REF TO if_wd_context_element.
DATA lt_nd TYPE wd_this->Elements_ZCY006.
data ls_nd like line of lt_nd.
data :
lr_comp_alv type ref to if_wd_component_usage,
lr_comp_if_alv type ref to iwci_salv_wd_table,
lr_config type ref to cl_salv_wd_config_table.
select * from zcy006 into CORRESPONDING FIELDS OF TABLE lo_nd.
lr_comp_alv = wd_this->wd_cpuse_alv( ).
* instant component_usage
if lr_comp_alv->has_active_component( ) is initial .
lr_comp_alv->create_component( ).
endif .
* get COMPONENTCONTROLLER
lr_comp_if_alv = wd_this->wd_cpifc_alv( ).
lr_comp_if_alv->set_data( lo_nd ).
* get Configure ALV
lr_config = lr_comp_if_alv->get_model( ).
lo_nd = wd_context->get_child_node( name = 'ZCY006' ).
data: if_table_setting TYPE REF TO IF_SALV_WD_TABLE_SETTINGS.
if_table_setting ?= lr_config.
*** set table width
if_table_setting->SET_WIDTH( '1000' ).
*** set multiple column sort
if_table_setting->SET_MULTI_COLUMN_SORT( ABAP_TRUE ).
*****************************
* set column property of ALV
*****************************
*** set visiable rows.
if_table_setting->SET_VISIBLE_ROW_COUNT( 20 ).
if_table_setting->SET_MULTI_COLUMN_SORT( ABAP_TRUE ).
if_table_setting->SET_FOOTER_VISIBLE( IF_SALV_WD_C_TABLE_SETTINGS=>FOOTER_VISIBLE_TRUE ).
if_table_setting->set_selection_mode( cl_wd_table=>e_selection_mode-multi_no_lead ).
* define column table
data: lt_columns type salv_wd_t_column_ref ,
ls_columns type salv_wd_s_column_ref .
* define UI element
data: lc_input type ref to cl_salv_wd_uie_input_field.
* define column header
data: lc_column_header TYPE REF TO CL_SALV_WD_COLUMN_HEADER.
* set columns table
lt_columns = lr_config->if_salv_wd_column_settings~get_columns( ).
loop at lt_columns into ls_columns.
case ls_columns-id.
when 'ZCYBEGIN'.
lr_config->IF_SALV_WD_COLUMN_SETTINGS~delete_column( ls_columns-id ).
when 'ZCYERNAM'.
lr_config->IF_SALV_WD_COLUMN_SETTINGS~delete_column( ls_columns-id ).
* when 'SPERR'.
* lc_column_header = ls_columns-r_column->get_header( ).
* lc_column_header->set_ddic_binding_field(
* if_salv_wd_c_column_settings=>ddic_bind_none ) .
***********************************************************************
**** set header icon***************************************************
** GET IMAGE SOURCE FROM TABLE WDG_UR_WEBICONT.
* lc_column_header->SET_TEXT( '冻结状态' ).
endcase.
ls_columns-r_column->SET_WIDTH( '100' ).
*
clear:ls_columns.
endloop.
if_table_setting->SET_FIXED_TABLE_LAYOUT( abap_true ).
lr_config->if_salv_wd_std_functions~set_export_allowed( abap_false ).
lr_config->if_salv_wd_std_functions~set_pdf_allowed( abap_false ).
lr_config->if_salv_wd_std_functions~set_column_selection_allowed( abap_true ).
lr_config->if_salv_wd_std_functions~set_count_records_allowed( abap_true ).
lr_config->if_salv_wd_std_functions~set_dialog_settings_allowed( abap_true ).
lr_config->if_salv_wd_std_functions~set_dialog_settings_as_popup( abap_true ).
lr_config->if_salv_wd_std_functions~SET_COLUMN_SELECTION_ALLOWED( abap_true ).
Hi,
You may have to implement the Unified rendering corrections. Implement the SAP Note - Unified rendering corrections for your netweaver version. ( Like SAP Note 1627994)
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 |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.