eclipse 如何在 BIRT 中通过 URL 传递输入参数?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12953007/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to Pass Input Parameters by URL in BIRT?
提问by vmb
I am new to BIRT reporting. In my BIRT report I have two input parameters. I want to pass these two input parameters to the server through the query string (in the URL).
我是 BIRT 报告的新手。在我的 BIRT 报告中,我有两个输入参数。我想通过查询字符串(在 URL 中)将这两个输入参数传递给服务器。
How can I do this?
我怎样才能做到这一点?
回答by FerA
If the problem is just get the right URL, this would be something like:
如果问题只是获取正确的 URL,则类似于:
"YOUR_SERVER/your_birt_app/run?__report=ReportName.rptdesign&Name_Parameter1=Value1&Name_Paremeter2=Value2".
“YOUR_SERVER/your_birt_app/run?__report=ReportName.rptdesign&Name_Parameter1=Value1&Name_Paremeter2=Value2”。
The "run" method is one of the methods mapped in the BIRT Viewer Servlet. There are two others: "frameset" and "preview".
“run”方法是 BIRT Viewer Servlet 中映射的方法之一。还有另外两个:“框架集”和“预览”。
You can check these informations in: http://www.eclipse.org/birt/phoenix/deploy/viewerUsage2.2.php
您可以在以下位置查看这些信息:http: //www.eclipse.org/birt/phoenix/deploy/viewerUsage2.2.php
回答by Shubham
Hakre..
哈克..
If you are using static parameter then those parameter can be passed in the following way: "http://yourcompleteurl¶metername1=value1¶metername2=value2".
如果您使用的是静态参数,那么这些参数可以通过以下方式传递:“http://yourcompleteurl¶metername1=value1¶metername2=value2”。