Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
<birt viewer> to delay and submit after the body on Load is run.
shriyakish
Hello,<br />
<br />
I am new to BIRT and have managed to successfully install the viewer in my app.<br />
<br />
However, I would like to perform some operations on the body on load (ajax calls) and I want the birt viewer to go fetch data after I am done with the processing.<br />
<br />
I am not sure how to achieve this. Currently, the birt viewer is visible as soon as the page comes up and the ajax call in progress.<br />
<br />
Couldd you pls help?<br />
Thanks.<br />
<br />
Below is a part of my code.<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
<body onload="create()">
<%@ include file="showParams.jspf" %>
<form name="projectCoding" >
<div id="timer" style="display: none;">
<table width="100%" id="titleTable">
<tr><th id="titleTd" align="center">Please wait while the <span class="waitHdrTitle" id="titleSpan">${param.PAGE_TITLE}</span> is being processed...</th></tr>
<tr><td> </td></tr>
<tr><td align="center"><img src="<c:url value="/images/progress.gif"/>"></td></tr>
<tr><td> </td></tr>
<c:if test="${applicationScope['report.Timer']}">
<tr><td align="center"><altum:Timer/></td></tr>
</c:if>
</table>
</div>
<!--
<% //if (showPreview) { %>
<br>
<div id="previewMessage" class="warningText" style="display: none"><IMG src="../../../images/warn.gif">Due to the size of this report (>250 pages), exporting to Adobe Acrobat format is recommended. Only a preview is shown below.</div>
<% //} %>
-->
<div id="exportToTable" style="display: none" class="jmesa">
<table class="table" border="0" cellSpacing="0" cellPadding="0" width="5%">
<tbody>
<tr class="toolbar">
<td class="header">Export to : </td>
<!-- <td><img alt=Separator src="<c:url value="/images/table/separator.gif" />"></td>
<td><a href="javascript:exportReport('xls')"><img title="XLS Export" alt=excel src="<c:url value="/images/table/excel.gif" />"></a></td>
<td><img alt=Separator src="<c:url value="/images/table/separator.gif" />"></td>
--> <td><a href="javascript:exportReport('pdf')"><img title="PDF Export" alt=pdf src="<c:url value="/images/table/pdf.gif" />"></a></td>
<td><img alt=Separator src="<c:url value="/images/table/separator.gif" />"></td>
<!-- <td><a href="javascript:exportReport('csv')"><img title="CSV Export" alt=pdf src="<c:url value="/images/table/csv.gif" />"></a></td>
<td><img alt=Separator src="<c:url value="/images/table/separator.gif" />"></td>
--> <td><a href="javascript:exportReport('rtf')"><img title="RTF Export" alt=rtf src="<c:url value="/images/table/rtf.gif" />"></a></td>
<td><img alt=Separator src="<c:url value="/images/table/separator.gif" />"></td>
<!-- <td><a href="javascript:exportReport('html')"><img title="HTML Export" alt=pdf src="<c:url value="/images/folder/htmlicon.gif" />"></a></td>
<td><img alt=Separator src="<c:url value="/images/table/separator.gif" />"></td>
--> </tr>
</tbody>
</table>
</div>
<br>
<hr id="newLine" align=left style="display: none" width="40%">
<br><br>
<div id="rows"></div>
<input type="hidden" id="dataRows"/>
</form>
<birt:viewer
id="birtViewer"
reportDesign="projectListing.rptdesign"
pattern="frameset"
height="800"
width="1000"
format="html"
baseURL="/birt-viewer">
<birt:param name="sReportLabel" value="<%=sReportLabel %>" />
<birt:param name="sReportLabel2" value="<%=sReportLabel2 %>" />
<birt:param name="sReportTitle" value="<%=sReportTitle %>" />
<birt:param name="groupBy" value="<%=sGroupBy %>" />
<birt:param name="bAbstract" value="<%=bAbstract %>" />
</birt:viewer>
</pre>
Find more posts tagged with
Comments
There are no comments yet