Hi all,
I have a tableview with 2 fields say A and B.
When i click any of the field(row) i want to open a new page with the parameters A and B.
I have used iterator and able to get the value for either field-A or field-B..How to get both field values in
IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START
This my code,
*Oncreate*
create object tv_iterator type ycl_salary_review.
method if_htmlb_tableview_iterator~render_cell_start .
data: wf_text type string,
wf_url type string,
test type char1.
data: htmlstring type string ,
rono type string .
field-symbols: <fs> type any ,
<l_a> type any,
<l_b> type any.
assign p_row_data_ref->* to <fs>.
case p_column_key.
when 'A'.
assign component p_column_key of structure <fs> to <l_a>.
wf_text = <l_a> .
concatenate 'page2.htm?field_a=' wf_text into
wf_url.
.
call method cl_htmlb_link=>factory
exporting
id = p_cell_id
reference = wf_url
target = '_self'
text = wf_text
receiving
element = p_replacement_bee.
endcase.
Rgds,
Venkonk