use parameterPage tag to run report in same JSP page [message #690455] |
Wed, 29 June 2011 14:42 |
Scroon Messages: 28 Registered: June 2011 |
Junior Member |
|
|
HI,
I'm using parameterPage tag to build a custom parameter page, but when the report is run, it's either in a new window or overwrite the current window....(by setting thetarget tab to _blank or parent)
Is there a way to run the report below the parameter field, like what report tag and viewer tag do with the isHostpage tag..... Since isHostpage is not supported by parameterPage tag.
Thank in advance
[Updated on: Wed, 29 June 2011 15:02] Report message to a moderator
|
|
|
Re: use parameterPage tag to run report in same JSP page [message #690513 is a reply to message #690455] |
Wed, 29 June 2011 15:14 |
|
Why not use a frameset like:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<frameset rows="*,2*">
<frame name="parms" src="BirtParmCustomTarget.jsp">
<frame name="content" src="">
</frameset>
</html>
Then use BirtParmCustomTarget.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib uri="/birt.tld" prefix="birt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
</head>
<body>
<div id=myudiv></div>
<birt:parameterPage id="birtParmPage" reportDesign="TopNPercent.rptdesign"
name="my form"
pattern="frameset"
height="600"
width="800"
format="html"
title="My Viewer Tag"
isCustom="true"
showTitle="true"
showToolBar="true"
showNavigationBar="true"
target="content"
>
TOP COUNT PARAMETER
<input type="Text" name="Top Count">
<br><br>
TOP PERCENT PARAMETER
<input type="Text" name="Top Percentage">
<br><br>
<input type="Submit" value="Run Report">
</birt:parameterPage>
</body>
</html>
Jason
On 6/29/2011 10:42 AM, Scroon wrote:
>
> HI,
>
> I'm using parameterPage tag to build a custom parameter page, but when
> the report is run, it's either in a new window or overwrite the current
> window....(by setting thetarget tab to _blank or parent)
>
> Is there a way to run the report below the parameter field, like what
> report and viewer do with the isHostpage tag..... Since isHostpage is
> not supported by parameterPage tag.
>
> Thank in advance
|
|
|
|
|
Re: use parameterPage tag to run report in same JSP page [message #741461 is a reply to message #741230] |
Wed, 19 October 2011 14:56 |
|
Gaurav,
The example that was posted earlier in this thread was just a JSP page
that I added to the deployed BIRT Viewer. Is this what you are doing?
Jason
On 10/19/2011 6:09 AM, Gaurav wrote:
> Hey I am new to BIRT as well as JSP.
>
> I am also doing to the same thing but I am getting an error of
> NoClassDefFoundError. Please help me out of this. Let me know which jar
> files I have to add in class path.
>
> Thanks,
> Gaurav
|
|
|
Powered by
FUDForum. Page generated in 0.02950 seconds