cancel
Showing results for 
Search instead for 
Did you mean: 

Inputfield value in TableView

Former Member
0 Kudos

hello

i am rendering a tableview with the help of iterator. it is displaying the values correctly but now i want one column as the inputfied. i can have the same using p_replacement_bee.

but my problem is how to set the value of the inputfield of the column. i checked the parameters of method IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START where i found P_ROW_DATA_REF and i guess this would be having the column value.

i tried getting that value using

ASSIGN P_ROW_DATA_REF->* to <fs>.

lv_tmp = <fs>

while it compiles successfully it gives error at the runtime.

does anyone knows how to get this value or how to set the value of inputfield.

thanks in advance.

regards

tatvagna

Accepted Solutions (1)

Accepted Solutions (1)

athavanraja
Active Contributor
0 Kudos

IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START code

field-symbols: <fs> type any ,

<l_field> type any .

data: wf_text type string .

assign p_row_data_ref->* to <fs>.

case p_column_key.

when 'DESIREDCOLUMNNAME' .

ASSIGN COMPONENT p_column_key OF STRUCTURE <fs> TO <l_field>.

if <l_field> is assigned .

wf_text = <l_field> .

endif .

p_replacement_bee = cl_htmlb_inputfield=>factory(

id = p_cell_id

value = wf_text ).

Raja

Answers (0)