issue #368 - first part: correction autofilter with no values in filter in writerclass

This commit is contained in:
StefanSchmoecker 2015-04-09 22:30:10 +02:00
parent 5fc05a9ec5
commit 60bd05f89d

View File

@ -3578,10 +3578,14 @@ ENDMETHOD.</source>
CLEAR ls_sheet_content.
LOOP AT io_worksheet-&gt;sheet_content INTO ls_sheet_content.
IF lt_values IS INITIAL. &quot; no values attached to autofilter &quot; 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-&gt;set_attribute_ns( name = &apos;customFormat&apos; value = &apos;1&apos;).
ENDIF.
ENDIF.
IF lt_values IS INITIAL. &quot; no values attached to autofilter &quot; issue #368 autofilter filtering too much
CLEAR l_autofilter_hidden.
ELSE.
l_autofilter_hidden = abap_true. &quot; First default is not showing
ENDIF.
ELSE.
ENDIF.
ENDWHILE.
lo_element_3 = lo_document-&gt;create_simple_element( name = lc_xml_node_c