Skip to main content



      Home
Home » Archived » BIRT » use parameterPage tag to run report in same JSP page
use parameterPage tag to run report in same JSP page [message #690455] Wed, 29 June 2011 10:42 Go to next message
Eclipse UserFriend
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 11:02] by Moderator

Re: use parameterPage tag to run report in same JSP page [message #690513 is a reply to message #690455] Wed, 29 June 2011 11:14 Go to previous messageGo to next message
Eclipse UserFriend
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 #690542 is a reply to message #690513] Wed, 29 June 2011 12:59 Go to previous messageGo to next message
Eclipse UserFriend
Thanks, it works great Surprised
Re: use parameterPage tag to run report in same JSP page [message #741230 is a reply to message #690455] Wed, 19 October 2011 06:09 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: use parameterPage tag to run report in same JSP page [message #741461 is a reply to message #741230] Wed, 19 October 2011 10:56 Go to previous message
Eclipse UserFriend
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
Previous Topic:Table (id=585) - Can not load the report query
Next Topic:Alignment of labels in bar chart
Goto Forum:
  


Current Time: Tue Jul 22 17:48:45 EDT 2025

Powered by FUDForum. Page generated in 0.05475 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top