Hi Guys,
I have a requirement to create a dynamic tab in tab strip with a dynamic table in it.
Though i am managing to create the dynamic tab and dynamic table,
The position of the table is the one i am unable to control.
The table is even appearing beyond the tab strip.
Please help to solve the issue.
My code which is generating the Dynamic tab and table is as below. This is written in modify view hook method.
data: lo_tab type ref to CL_WD_TAB,
lo_table TYPE REF TO CL_WD_table,
lo_container TYPE REF TO cl_wd_uielement_container,
lv_string type string,
it_zf005 type zftt005,
lo_text TYPE REF TO cl_wd_caption.
lo_tab = cl_wd_tab=>new_tab( ).
lo_text = cl_wd_caption=>new_caption( text = 'Test' ).
lo_tab->set_header( the_header = lo_text ).
lo_tab->register_to_view( i_view = view ).
**define a table
lv_string = 'COR'.
lo_container ?= view->get_root_element( ).
lo_table = cl_wd_dynamic_tool=>create_table_from_node( ui_parent = lo_container
table_id = lv_string
node = lo_nd_mpr_table ).
lo_tab->set_content( the_content = lo_table ).
lo_el_tabstrip->add_tab( exporting the_tab = lo_tab ).