Hi,
I am trying to use tableview iterator to provide a dropdown box in one of the column in the tableview.
Screen flow - first screen user will enter some values in a table view (let us say phase name - that is just a single column).
In the next screen user will have to enter details in another table for which the first screen table should get displayed as a drop down for the column phase.
I have the iterator declared as type ref to my application class itself - since this is the only table I am going to have iterator (I am not using MVC). The following is the code in render_cell_start method.
data: html_bee type ref to cl_bsp_bee_html,
i_phas1_ref type ref to data.
if p_column_key eq 'PHASE' and p_tableview_id eq 'PROJDET' and
me->v_screen eq 'PROJECT' and me->v_chg_ok eq 'X'.
get reference of me->i_phas1 into i_phas1_ref.
p_replacement_bee = CL_HTMLB_DROPDOWNLISTBOX=>FACTORY(
id = p_cell_id
selection = iter_row_ref->phase
table = i_phas1_ref
nameOfKeyColumn = 'PHNAM'
endif.
Control is coming inside this method but my issue is the application variables v_screen / v_chg_ok / internal table i_phas1 are empty inside this method (it got filled in initialization event).
Kindly suggest what should be done to get the values here.
Thanks,
Krish.