Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » show raport rptdesign on div
show raport rptdesign on div [message #660109] Wed, 16 March 2011 16:49 Go to next message
Bartek  is currently offline Bartek
Messages: 11
Registered: November 2010
Junior Member
Hello,

how can i load birt raport into div on my website?
It is posible?
Re: show raport rptdesign on div [message #660281 is a reply to message #660109] Thu, 17 March 2011 11:45 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Bartek,

Can you use tag libraries. BIRT tag libraries will do what you need.
http://www.eclipse.org/birt/phoenix/deploy/viewerUsageMain.p hp#tags

Jason

On 3/16/2011 4:49 PM, Bartek wrote:
> Hello,
>
> how can i load birt raport into div on my website?
> It is posible?
>
Re: show raport rptdesign on div [message #660587 is a reply to message #660281] Sat, 19 March 2011 13:04 Go to previous messageGo to next message
Bartek  is currently offline Bartek
Messages: 11
Registered: November 2010
Junior Member
Ok.
May be I describe my problem

I write php page

and i have menu and context

<div id='menu'>
</div>
<div id='context'>
</div>

in menu i have list of my raport and when i click on some raport of list fore example product i whont show generate raport product.rptdesign on context?

it is posible?

Re: show raport rptdesign on div [message #660840 is a reply to message #660587] Mon, 21 March 2011 18:08 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

If you use the viewer tag it creates an iframe that you can update.
Take a look at this example.
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib uri="/WEB-INF/tlds/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>
<script type="text/javascript">

function loadIframe(iframeName, url) {
if ( window.frames[iframeName] ) {
window.frames[iframeName].location =
window.frames[iframeName].location + "&__overwrite=true";
return false;
}else{
return true;
}
}

</script>
<birt:viewer id="birtViewer" reportDesign="TopNPercent.rptdesign"
pattern="preview"
height="600"
width="600"
format="html"
title="My Viewer Tag"
isHostPage="false"
showTitle="true"
showToolBar="true"
showNavigationBar="true"
showParameterPage="true"

></birt:viewer>


<form action="">

<INPUT TYPE="button" NAME="button" Value="Click"
onClick="loadIframe('birtViewer')" >
</form>

</body>
</html>

Run it an then view the html that is generated. You can always use
script to modify the url to change the reportName.

Jason

On 3/19/2011 1:04 PM, Bartek wrote:
> Ok.
> May be I describe my problem
>
> I write php page
>
> and i have menu and context
>
> <div id='menu'>
> </div>
> <div id='context'>
> </div>
>
> in menu i have list of my raport and when i click on some raport of list
> fore example product i whont show generate raport product.rptdesign on
> context?
>
> it is posible?
>
>
Previous Topic:Set Postscript to Reverse Page Order?
Next Topic:BIRT and The Java Heap
Goto Forum:
  


Current Time: Sat Aug 30 20:26:09 EDT 2014

Powered by FUDForum. Page generated in 0.05264 seconds