var printurl="http://localhost:8075/webroot/decision/view/report"; var names = []; var paths = []; var singlepaths = []; var url = "ReportServer?reportlets=("; var $span = $('.fr-checkbox-checkon'); var $tds = $("td").has($span); var $trs = $("tr").has($tds); var p=[]; for(var i=0; i<$trs.length;i++){ var name = $("td:eq(2)",$($trs[i])).html(); var a = $("td:eq(3)",$($trs[i])).html(); var b = $("td:eq(4)",$($trs[i])).html(); names.push(name); var cptpath ="doc/Advanced/PrintReport/"+"test"+ name+".cpt"; var urlstring = "{reportlet:" +"'"+FR.cjkEncode(cptpath)+"'"+",p1:"+"'"+name+"'"+",p2:"+"'"+a+"'"+",p3:"+"'"+b+"'"+"}"; debugger; paths.push(urlstring); debugger; } if(paths.length>0){ var rpaths=paths.join(","); var reportlets="["+rpaths+"]"; var config = { url : printurl, isPopUp : false, data : {reportlets:reportlets} }; } debugger; FR.doURLPDFPrint(config); |