Skip to Content
0
Jun 15, 2006 at 07:35 AM

tableView iterator

14 Views

Hi Guys

Kindly help me out.

I am using a tableView Iterator for my application in which I am making one column as input field, in which data should be visible when the .htm page is called. If the user see that the data on that cell is correct he can leave otherwise he can change the data on the very cell.

Here is the code.

method IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START.

CASE p_column_key.

WHEN 'CURRENT_STATE'.

DATA: if_input TYPE REF TO CL_HTMLB_INPUTFIELD,

if_text TYPE REF TO CL_HTMLB_TEXTVIEW.

CURRENT_STATE = m_row_ref->CURRENT_STATE.

*p_replacement_bee = CL_HTMLB_TEXTVIEW=>FACTORY(

  • id = p_cell_id

  • TEXT = CURRENT_STATE ).

*

if_input = CL_HTMLB_INPUTFIELD=>FACTORY( id = p_cell_id

id_postfix = '_input'

type = 'STRING' ).

if_text = CL_HTMLB_TEXTVIEW=>FACTORY( id = p_cell_id

id_postfix = '_text'

text = CURRENT_STATE ).

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.

Now after coding like this the column comes as input field (which I want) but the data is not visible.

Kindly help.

Also one of the column I have made clickable using an icon

and by giving an ONCLICK but I dont know how to catch this event in ONINPUT PROCESSING.

Kidly reply

Thanx