Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Tableview : inputfield and other stuff in the same cell ?

Hi everybody!

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!

Fran├žois

replied

Hi Francois,

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:

/people/brian.mckellar/blog/2003/10/31/bsp-programming-htmlb-tableview-iterator

Regards,

Rainer

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question