| Multiple Submit Buttons in Custom Parameter Page [message #702752] |
Tue, 26 July 2011 15:07  |
Scroon Messages: 28 Registered: June 2011 |
Junior Member |
|
|
Hello,
I'm trying to build a custom parameter page which can invoke different reports with same parameter set.
E.g.: In the following picture

User can run report A or report B as they wish, passing same parameters.
With a custom parameter page:
//example.jsp
.....
<birt:parameterPage id="birtParmPage" reportDesign="Report_A.rptdesign"
name="my form"
pattern="frameset"
format="html"
isCustom="true"
showTitle="true"
showToolBar="true"
showNavigationBar="true"
>
ClientName: <birt:paramDef id="11" name="ClientName" "/>
<br>
Date From:
<input type="text" name="date_from" />
To:
<input type="text" name="date_to" />
<br>
<input type="submit" name="submit" value="Run Report A"/>
......
.......
</birt:parameterPage>
....
....
<script type="text/javascript">
function RunReportB(){
window.location = "http://localhost/frameset?__report=Report_B.rptdesign&ClientName=<how to get the value of parameter ClientName, which is set by user?>&date_from=<how to get the value of parameter date_from?>&date_to=<how to get the value of parameter date_to?>"
}
</script>
<input type="button" value="Run Report B" onclick="RunReportB();"/>
The problem will be solved if we can get the values of parameter ClientName,date_from,date_to out from <birt:parameterPage> .... </birt:parameterPage> in any place in the jsp file.
Attachment: 1.JPG
(Size: 9.72KB, Downloaded 313 times)
[Updated on: Tue, 26 July 2011 15:25] Report message to a moderator
|
|
|
|
|
|
| Re: Multiple Submit Buttons in Custom Parameter Page [message #703465 is a reply to message #703426] |
Wed, 27 July 2011 11:25  |
Jason Weathersby Messages: 9167 Registered: July 2009 |
Senior Member |

|
|
Run the parameter page to html and view the source. You will see the
form the tags create and the parameters. The only issue is that they
will have javascript functions already generated for most of the
parameters. You can just manipulate the dom the same way the previous
example showed.
Jason
On 7/27/2011 11:01 AM, Scroon wrote:
> One further question, is there other property we can modify, besides
> document.page1.action, like
> document.page1.<ParametersPassingToTheReport>; ?
Jason Weathersby
BIRT Exchange
|
|
|
Powered by
FUDForum. Page generated in 0.01687 seconds