Формирование сменных, суточных, месячных, годовых сводок и справок Debug.write("onselect:" + rType.text); rList.setAttribute("datapath","ds000:/"); content1.setAttribute("datapath","ds000:/"); if(lay3.subnodes!=null){ lay3.subnodes[0].destroy(); lay3.subnodes= null; }; Debug.debug("onselect(lay3.subnodes=null)", lay3.subnodes); var sql= "select distinct level,lev from reports1 order by lev;"; ds001.setQueryString({req:sql}); ds001.doRequest(); var dp= this.dupePointer(); var lev, level, len=-1; dp.selectChild(); do { lev= dp.xpathQuery("lev/text()"); level= dp.xpathQuery("level/text()"); if(lev!=null){ rType.addItem(level,lev); len++; } } while (dp.selectNext()); rType.selectItemAt(len); №№ Код Наименование var dp1= lay3.subnodes[0]; year= dp1.selecteddate.getFullYear(); month= ("0"+(dp1.selecteddate.getMonth()+1)).substr(-2); day= ("0"+dp1.selecteddate.getDate()).substr(-2); pStart= ""+ year+ month+ day+ "0000"; pStop= ""+ year+ month+ day+ "2300"; Debug.write("Интервал="+ pStart+ "-"+ pStop); Наименование Описание var idx= this.getIndexForItem(this.getSelection()[0]); var xp= "ds002:/ROWSET/ROW[" +(idx+1)+ "]"; Debug.write(xp); content1.setAttribute("datapath", xp);