Формирование сменных, суточных, месячных, годовых сводок и справок Debug.write(rType.text); rList.setAttribute("datapath","ds000:/"); content1.setAttribute("datapath","ds000:/"); var sql= "select distinct level,lev from reports1 order by lev;"; ds001.setQueryString({sql: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()"); rType.addItem(level,lev); len++; } while (dp.selectNext()); rType.selectItemAt(len); Наименование Описание var idx= this.getIndexForItem(this.getSelection()[0]); var xp= "ds002:/ROWSET/ROW[" +(idx+1)+ "]"; Debug.write(xp); content1.setAttribute("datapath", xp); №№ Код Наименование Debug.debug(this); /* if( this.selecteddate != null ) { display.year.setAttribute('text', this.selecteddate.getFullYear() ); display.month.datapath.setXPath( "datepicker_strings_en:/months/month[@index='" + this.selecteddate.getMonth() + "']/@full" ); display.date.setAttribute('text', this.selecteddate.getDate() ); } */