Tableview : inputfield and other stuff in the same cell ?
I wonder how I could do the following :
in a tableview, using iterator, have a cell with both :
- a free text (html)
- an inputfield
the result would be a table like that :
" Item | Weight | Length 10000125 | = [inputfield] kg | = [inputfield] m 10000132 | = [inputfield] kg | = [inputfield] m ... "
Huh? Would be fine, like!
Maybe someone could help me ?
Because I know how to insert the input field :
DATA col1_inputField TYPE REF TO CL_HTMLB_INPUTFIELD. CREATE OBJECT col1_inputField. p_replacement_bee = col1_inputField.
and also the free text :
p_replacement_bee = CL_HTMLB_TEXTVIEW=>FACTORY( text = html_output ).
... but how to mix them together ?
Thanks a lot for you all for all past and coming help!
Rainer Liebisch replied
this can easily be achieved with a bee table. You can do something like this:
DATA: if_input TYPE REF TO CL_HTMLB_INPUTFIELD, if_text TYPE REF TO CL_HTMLB_TEXTVIEW. if_input = CL_HTMLB_INPUTFIELD=>FACTORY( id = p_cell_id id_postfix = '_input' type = 'INTEGER' ). if_text = CL_HTMLB_TEXTVIEW=>FACTORY( id = p_cell_id id_postfix = '_text' text = 'my text' ). DATA: whole_cell TYPE REF TO CL_BSP_BEE_TABLE. CREATE OBJECT whole_cell. whole_cell->ADD( if_input ). whole_cell->ADD( if_text ). p_replacement_bee = whole_cell.
Please also have a look at weblog: