Skip to Content
0
Mar 22, 2006 at 08:01 AM

No Margin if I use TableView Iterator

15 Views

I am using a htmlb:TableView with Iterator.

I noticed that the cell-margin disappears if I a htmlb:textView in the iterator.

For example, if I have two columns, and in only the second column I show a textview as a replacement bee, the second column will have no cell-margin while the first one has.

METHOD if_htmlb_tableview_iterator~render_cell_start .
  DATA lr_text  TYPE REF TO cl_htmlb_textview.

  FIELD-SYMBOLS <fs_row>  LIKE LINE OF ##mytable##.

    CASE p_column_key.

      WHEN 'MYCOLUMN2'.
        CREATE OBJECT lr_text.
        lr_text->id       = p_cell_id.
        lr_text->wrapping = cl_bdv_co=>c_true.
        lr_text->text     = <fs_row>-mycolumn2.

        p_replacement_bee = lr_text.
    ENDCASE.
ENDMETHOD.

Is there anything I can do about it?