• Dynamic tabs

    By K A 1 decade ago

    The main tab container has a fixed tab pane (mainTabC)
    which contains a panel (panel1)
    This panel contains 2 tabcontainers (TabC1 and TabC2)
    each having tabpanes that contains datatable, displaying data from a view.

    On clicking the first column of datatable in  TabC1
     creates a dynamic tab pane in the main tabcontainer (maintabC2).
    It uses include page to display the details of the document selected.

    A save button on this xpage saves the document +
    closes the opened tab pane (maintabC2) and refresh the panel1.
    In short the button should save the opened document and also refresh tabC1 and TabC2 contents.
    It does save the document and refreshes the tabC1 and tabC2
    but removes the tabs on the top,
    adds the menubar, sliderbar on the top and
    concatenates the datatables in each tabC1 and TabC2.


    MainTabC                                            MainTabC2
    Panel1                                                  Save Button (Savesdoc and refreshes panel1)
    TabC1                   TabC2
    2 tabs                    3 tabs
    each having a     each having a
    datatable              datatable



    Result

    MainTabC            
    Panel1                
    TabC1                    TabC2
    concatenates        concatenates
    datatable                datatable


    Can you please suggest how to get rid of the menu and scroll bar and display the tabs back with the datatable in them.