// JScript source code //get the active branches in the tree var projects = DS.Tree.Projects; var numProjects = projects.Count; var date = new Date(); //loop over the branches for(i=1; i<=numProjects; i++) { var currentProject = projects(i); if( currentProject ) currentProject.ResetTree(); }