Hello,

I need to reload the data displayed in a Tree zwith TreePanel.


Can you check my code ?
when i am doing Step by Step, it works but not in normal mode.


PHP Code:

   connect
: function(){
        var 
myconnection;
        
//Connect me or disconnect me
        
        
if (this.loginfrm.isValid()) {
            if (!
this.bConStatus) {
                
this.doLogin();
                
iL10Nz.treeProj.loader.dataUrl 'getprojlist.php?reqaction=getprojlist&format=json&username=' Ext.state.Manager.get("username") + '&session_id=' Ext.state.Manager.get("session_id");
                
                
                
iL10Nz.treeProj.loader.load();

            }
            else {
                
this.doLogout();
                
iL10Nz.treeProj.loader.dataUrl 'getprojlist.php?reqaction=getprojlist&format=jsonempty&username=' Ext.state.Manager.get("username") + '&session_id=' Ext.state.Manager.get("session_id");
                
iL10Nz.treeProj.root.reload();
            }
        }
    },