|
|
|
Re: show raport rptdesign on div [message #660840 is a reply to message #660587] |
Mon, 21 March 2011 22:08 |
|
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?
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03663 seconds