Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 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 14:42 Go to next message
Scroon  is currently offline 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 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

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 16:59 Go to previous messageGo to next message
Scroon  is currently offline Scroon
Messages: 28
Registered: June 2011
Junior Member
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 10:09 Go to previous messageGo to next message
Gaurav  is currently offline Gaurav
Messages: 1
Registered: October 2011
Junior Member
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 14:56 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

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: Wed Oct 22 08:20:45 GMT 2014

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

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