Jump to content
We've recently updated our Privacy Statement, available here ×

wkwjsrjehenr

Members
  • Posts

    3
  • Joined

  • Last visited

wkwjsrjehenr's Achievements

Rookie

Rookie (2/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. <pre class="tw-data-text tw-ta tw-text-small" data-placeholder="번역" dir="ltr" id="tw-target-text" style="background-color:#f8f9fa; border:none; color:#222222; font-family:inherit; font-size:16px; line-height:24px; margin-bottom:0px; margin-top:0px; overflow-wrap:break-word; overflow:hidden; padding:0px 0.14em 0px 0px; position:relative; resize:none; unicode-bidi:isolate; white-space:pre-wrap; width:283px"> Can I change the Auto Print Dialog dynamically? Can I do this in Java?</pre>
  2. Is there a way to output the contents of the database to a list, and then break the output of the contents to a new page?
  3. Main report <subreport> <reportElement stretchType="RelativeToTallestObject" x="24" y="10" width="548" height="623" uuid="198e6ba0-fa45-47af-8d87-2325efd48899"/> <subreportParameter name="p_s_hostname"> <subreportParameterExpression><![CDATA[$P{p_s_hostname}]]></subreportParameterExpression> </subreportParameter> <dataSourceExpression><![CDATA[$P{p_l_resultTypeTwo}]]></dataSourceExpression> <subreportExpression><![CDATA["report/result_sub.jasper"]]></subreportExpression> </subreport> Subreport <subreport> <reportElement x="20" y="10" width="509" height="70" uuid="440f2f73-a20a-4738-860e-b4078f7edeab"/> <subreportParameter name="p_s_hostname"> <subreportParameterExpression><![CDATA[$F{commentList}]]></subreportParameterExpression> </subreportParameter> <subreportExpression><![CDATA["report/comment.jasper"]]></subreportExpression> </subreport> JAVA List <DataMap> list = isptResultService.selectResultTypeOneForReport(param); for (int i = 0; i < list.size(); i++) { DataMap map = list.get(i); List<DataMap> itemResultList = isptResultService.selectIsptItemResultList(map); map.put("itemResultList", itemResultList); List<DataMap> commentList = isptResultService.selectIsptCommentListForReport(map); for(int j = 0; j<commentList.size(); j++) { commentList.get(j).put("P_S_HOSTNAME", ConfigUtils.getString("SYSTEM.SITE.ADDR")); } map.put("commentList", new JRBeanCollectionDataSource(commentList)); } model.addAttribute("p_l_resultTypeTwo", new JRBeanCollectionDataSource(list)); In the main report, I used a field variable declaration to pass a parameter to a subreport. I want to send a commentList from a subreport to a subreport. but net.sf.jasperreports.engine.fill.JRFillSubreport - Fill 2: exception In the main report, there is a value of p_l_resultTypeTwo. In the main report, there is no value for commentList. What is the problem?
×
×
  • Create New...