• Duplicate Tabs

    By Paul S Withers 1 decade ago

    I get duplicate tabs when I go to resetCache.xsp, the tabs are not cleared. To fix I've added to xpUtil a "remove" function for each type, e.g.

     

    function removeTabs() {

    baseTabs = new Array();

    }

     
    I've also amended resetCache.xsp to call a clearVars() function in xpConfig, which is:
     

    function clearVars() {

    try{

    removeTopTabs();

    removeTabs();

    removeSideMenus();

    removeFooterColumns();

    removeButtons();

    removeGlobalButtons();

    applicationScope.baseTopTabs=null;

    applicationScope.baseTabs=null;

    applicationScope.baseSideMenus=null;

    applicationScope.baseFooterColumns=null;

    applicationScope.baseButtons=null;

    applicationScope.baseGlobalButtons=null;

    applicationScope.initConfig=null;

    sessionScope.initConfig=null;

    } catch(e) {

    log.logError(e.getMessage);

    }

    }

     
This may be overkill, but it works. I'm using OpenLogXPages from TaskJam, which is why the catch block calls log.logError().