Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
How to execute previous or current version of Report Design stored in Encyclopedia
ramshankar
I have requirement to execute current or previous version of the report.<br />
<br />
They have used following code with in the JSP for displaying the BIRT report. <br />
<br />
function init()<br />
{<br />
<br />
actuate.load("viewer");<br />
actuate.initialize( "<%=PORT_URL%>/", null, "<%=username%>", "<%=password%>", GetParamValue );<br />
}<br />
<br />
function GetParamValue() {<br />
<br />
var theStatus = new Object();<br />
var myvar_array; <br />
var output_array = new Array();<br />
var query_string = unescape(location.search.substr(1));<br />
var mytool_array = query_string.split("&");<br />
for(var i=0;i<=(mytool_array.length)-1;i++)<br />
{<br />
<br />
for(var j=0;j<=(mytool_array
.split("=").length)-1;j++)<br />
{<br />
myvar_array = mytool_array
.split("=");<br />
theStatus[myvar_array[0]]= myvar_array[1];<br />
}<br />
<br />
<br />
<br />
}<br />
myViewer = new actuate.Viewer( "myViewerDivContainer" ); <br />
myViewer.setWidth(1000); <br />
myViewer.setReportName("<%=Report_Name%>" );<br />
myViewer.setParameters(<br />
{<br />
"pin_Market": theStatus<br />
}<br />
); <br />
<br />
myViewer.submit();<br />
<br />
<br />
<br />
Please let me what changes do i need to do for executing the previous version.
Find more posts tagged with
Comments
averma
Hi ramshankar,
Seems like you are using Actuate Javascript API's to display BIRT visualizations in your application. With Version 10 of Actuate products you can run upto version 2.3 of BIRT reports. Actuate 11 (currently in beta) extends support for BIRT 2.5.
Ashwini
ramshankar
Hi Ashwini,
I think, I have not framed the question right.
The scenario is straightforward
I have developed a BIRT report and deployed twice in the Encyclopedia. I will have two version in the Actuate iServer contain version 1 and 2.
If we pass the report name then lastest version will be executed from the iServer.
My question:
How to execute the previous version of the report design stored in iServer, I am not talking about the BIRT Report Version.
Please could you help me in this regards.
averma
Hi ramshankar,<br />
<br />
To use a specific version of report you can append the version# to report name separated by a semicolon. e.g.<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
myViewer.setReportName(“basename.rptddesign;XX”)
//XX is the file version number
</pre>
<br />
Ashwini
ramshankar
Thanks for all your time and effort.
Thank you very much for this example, I was struggling to find out how. thank you, thank you!
Can you please help me to understand how did you achieve this.