mirror of
https://github.com/abap2xlsx/abap2xlsx.git
synced 2025-05-04 23:19:45 +08:00
issue #368 - first part: correction autofilter with no values in filter in writerclass
This commit is contained in:
parent
5fc05a9ec5
commit
60bd05f89d
|
@ -3578,10 +3578,14 @@ ENDMETHOD.</source>
|
|||
|
||||
CLEAR ls_sheet_content.
|
||||
LOOP AT io_worksheet->sheet_content INTO ls_sheet_content.
|
||||
IF lt_values IS INITIAL. " no values attached to autofilter " issue #368 autofilter filtering too much
|
||||
CLEAR l_autofilter_hidden.
|
||||
ELSE.
|
||||
READ TABLE lt_values INTO ls_values WITH KEY column = ls_last_row-cell_column.
|
||||
IF sy-subrc = 0 AND ls_values-value = ls_last_row-cell_value.
|
||||
CLEAR l_autofilter_hidden.
|
||||
ENDIF.
|
||||
ENDIF.
|
||||
CLEAR ls_style_mapping.
|
||||
* Create row element
|
||||
* issues #346,#154, #195 - problems when we have information in row_dimension but no cell content in that row
|
||||
|
@ -3676,8 +3680,14 @@ ENDMETHOD.</source>
|
|||
lo_element_2->set_attribute_ns( name = 'customFormat' value = '1').
|
||||
ENDIF.
|
||||
ENDIF.
|
||||
IF lt_values IS INITIAL. " no values attached to autofilter " issue #368 autofilter filtering too much
|
||||
CLEAR l_autofilter_hidden.
|
||||
ELSE.
|
||||
l_autofilter_hidden = abap_true. " First default is not showing
|
||||
ENDIF.
|
||||
ELSE.
|
||||
|
||||
ENDIF.
|
||||
ENDWHILE.
|
||||
|
||||
lo_element_3 = lo_document->create_simple_element( name = lc_xml_node_c
|
||||
|
|
Loading…
Reference in New Issue
Block a user