How to get parameters in a URL and pass it to a report in an IFRAME

Source: Internet
Author: User
Tags autoload

When using the report software, the user system to the left generally has a directory tree, click on the report node will be in the right side of the page in the IFRAME display report, while clicking on the time will also pass some parameters to the page, such as time and user information. How can I make a report in a Web page get the parameters passed in? The following uses the report software Finereport to introduce briefly some.

Specific implementation process

When you generate a page for a report, add an onload event to the page, first get the parameters in the URL, then graft to the src of the IFRAME, or assign the full report URL to the iframe src by the obtained parameter stitching.

Save the code as geturlpara.html and save it under the Page_demo folder under the project.

Using administrator login decision platform, click Management System > Report management, click Add Link, link path: page_demo/geturlpara.html?report=doc/parameter/multivalue/ multivalue.cpt&area= East China &province= Jiangsu &city= Wuxi, Name: The URL parameter is passed to the report in the IFRAME, such as:

650) this.width=650; "src=" http://img.blog.csdn.net/20161124165137377 "/>

This refreshes fs so that you can see one more node in the left tree, and after clicking the node, you can display the report including the parameters passed to the Web page in the IFRAME on the right page.

Effect view

For example, click on the left "URL parameter to the report in the IFRAME" node, that is, open the corresponding link, the corresponding page will be displayed in the middle area:

650) this.width=650; "src=" http://img.blog.csdn.net/20161124165158674 "/>

How to get parameters in a URL and pass it to a report in an IFRAME

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.