Skip to Content
avatar image
Former Member

Dynamic Tabstrip creation

Hi Every body ,

My requirement is i need to create tabs on tabstrip dynamically and create table on the tabs.

I am able to create tabs dynamically but i am unable to create table on the tabs . If anybody have done this let give the code . I am pasting my code also please tell me is my approach is correct or not .

Thanks in advance ,

Vijay

Edited by: Vijay vorsu on Jun 19, 2009 10:03 AM

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Jun 19, 2009 at 08:08 AM

    Hi ,

    I am adding code which i have written , please correct me where it is wrong .

    l_tab = cl_wd_tab=>new_tab(

    id = l_id

    view = view ).

    • l_tabstrip->add_tab( l_tab ).

    CONCATENATE 'CAP_' ls_tab-id INTO l_id.

    CONCATENATE 'TAB_' ls_tab-id INTO ls_name.

    l_caption = cl_wd_caption=>new_caption(

    id = l_id

    view = view

    text = ls_name ).

    l_tab->set_header( l_caption ).

    • Creating container

    CALL METHOD cl_wd_transparent_container=>new_transparent_container

    EXPORTING

    • accessibility_descr =

    • bind_accessibility_descr =

    • bind_default_button_id =

    • bind_enabled =

    • bind_height =

    • bind_scrolling_mode =

    • bind_tooltip =

    • bind_visible =

    • bind_width =

    • context_menu_behaviour = E_CONTEXT_MENU_BEHAVIOUR-INHERIT

    • context_menu_id =

    • default_button_id =

    • enabled = 'X'

    • handle_hotkeys =

    • height =

    id = 'TAB_TR1'

    • is_layout_container = 'X'

    • labeled_by =

    • scrolling_mode = E_SCROLLING_MODE-NONE

    • tooltip =

    view = view

    • visible = E_VISIBLE-VISIBLE

    • width =

    receiving

    control = cl_trans

    .

    CALL METHOD cl_wd_flow_data=>new_flow_data

    EXPORTING

    • cell_design = E_CELL_DESIGN-PADLESS

    element = cl_trans

    • id =

    • v_gutter = E_V_GUTTER-NONE

    RECEIVING

    control = layout

    .

    l_tab->set_content( cl_trans ).

    CALL METHOD l_tabstrip->add_tab

    EXPORTING

    • index =

    the_tab = l_tab .

      • create table in tabstrip

      CALL METHOD view->get_element

      EXPORTING

      id = 'TAB_TR1'"ls_name

      RECEIVING

      element = ui_element.

      view_tr1 ?= ui_element .

      • getting error here

      CALL METHOD cl_wd_dynamic_tool=>create_table_from_node

      EXPORTING

      ui_parent = view_tr1

      table_id = 'TAB1'

      node = lo_nd_input

      • on_lead_select =

      RECEIVING

      table = ui_tab.

      Thanks ,

      vijay

      Add comment
      10|10000 characters needed characters exceeded