cancel
Showing results for 
Search instead for 
Did you mean: 

Tableview : inputfield and other stuff in the same cell ?

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

rainer_liebisch
Contributor
0 Kudos

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

Former Member
0 Kudos

Thanks a lot, Rainer!

I had misunderstood the weblog, but now, thanks to your example, I see what it's all about.

François

Answers (0)