Get the parameter values returned by the subreport from the main report __ireport

Source: Internet
Author: User

Example: Get the parameter values returned by the subreport from the main report (4)

10. Add variables variables in Main.jrxml and associate mappings with variables in the subreport

The property settings for the variable are shown in Figure 5.78.

Map the Shicount in the subreport to the Getshicount variable in main.jrxml, select the subreport control, and the return Values property setting is shown in Figure 5.79.

Add a variable mapping, and the variable mapping settings for the primary and subreport are shown in Figure 5.80.

Add the variable to the Main.jrxml interface, and set the evaluation time property to band, as shown in Figure 5.81.

The run effect is shown in Figure 5.82.


"Responsibility

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.