private boolean canBeSeeded(ReportVo report) { //reports without seeds can always be printed if(!report.getSeedsIsNotNull()) return true; if(report.getSeeds().size() == 0) return true; ReportSeedVo voReportSeed = new ReportSeedVo(); return engine.formHasData(engine.getPreviousNonDialogFormName(), voReportSeed.getIseeds(report.getSeeds())); }
private boolean canBeSeeded(ReportVo report) { //reports without seeds can always be printed if(!report.getSeedsIsNotNull()) return true; if(report.getSeeds().size() == 0) return true; ReportSeedVo voReportSeed = new ReportSeedVo(); return engine.formHasData(engine.getFormName(), voReportSeed.getIseeds(report.getSeeds())); }
private boolean canBeSeeded(ReportVo report) { //reports without seeds can always be printed if(!report.getSeedsIsNotNull()) return true; if(report.getSeeds().size() == 0) return true; ReportSeedVo voReportSeed = new ReportSeedVo(); return engine.formHasData((form.getLocalContext().getDialogName() != null ? form.getLocalContext().getDialogName() : engine.getPreviousNonDialogFormName()), voReportSeed.getIseeds(report.getSeeds())); }
private String getIFrameCode() throws DomainInterfaceException { StringBuffer sb = new StringBuffer(1000); String urlQueryServer = ConfigFlag.GEN.QUERY_SERVER_URL.getValue(); String urlReportServer = ConfigFlag.GEN.REPORT_SERVER_URL.getValue(); String[] obj = null; obj = domain.getReportAndTemplate(form.getGlobalContext().Core.getReportID(), form.getGlobalContext().Core.getTemplateID()); if(obj == null || obj.length == 0) { engine.showMessage("I could not get the report and template !"); return sb.toString(); } QueryBuilderClient client = new QueryBuilderClient(urlQueryServer,engine.getSessionId()); //FormBridge gen = engine.getFormInstance(form.getGlobalContext().Core.getCurrentFormName()); ReportSeedVo voReportSeed = new ReportSeedVo(); ReportVo voReport = new ReportVo(); voReport.setID_ReportBo(form.getGlobalContext().Core.getReportID()); IReportField[] seeds = form.getData(voReportSeed.getIseeds(domain.getReportSeeds(voReport))); //engine.freeFormInstance(gen); if (seeds != null) { String seedName; int pos; for (int i = 0; i < seeds.length; i++) { try { pos = seeds[i].getName().lastIndexOf('.'); seedName = seeds[i].getName().substring(pos + 1); client.addSeed(new SeedValue(seedName, seeds[i].getValue(), Class.forName(seeds[i].getType()))); } catch (ClassNotFoundException e) { sb.append(e.toString()); return sb.toString(); } } } String result = ""; try { result = client.buildReportAsUrlInlineFrame(obj[0],obj[1],urlReportServer,"PDF","",1); sb.append(result); } catch (QueryBuilderClientException e1) { return e1.toString(); } return sb.toString(); }
private IReportSeed[] getIseeds(ReportVo repVo) { ReportSeedVo voReportSeed = new ReportSeedVo(); return voReportSeed.getIseeds(domain.getReportSeeds(repVo)); }