Home Analytics DevShare
The community of Analytics developers are invited to follow and participate in the developer network.
OpenText technical experts collaborate with supported customers and partners in the Magellan product area.

Customizing iPortal to open the reports in the same browser window

edited February 14, 2008 in DevShare
<h3><strong>For on-demand reporting</strong></h3>
<p>Assuming you are using categories view edit the following file IPORTAL_ROOTiportalactivePortalprivatefilesfoldersviewscategories.jsp<br />Change runExecutable function to redirect to the generated URL and comment out call to openPopupWindow(...). The following code block has the change highlighted:</p>
<div class=\"xoopsCode\" style=\"border: 1px solid;\"><span style=\"font-family: Courier New,Courier,monospace;\"> function runExecutable(executableQueryString)<br />{<br /> var tokenValue = Math.floor(Math.random()*101);<br /> var tokenParameter = \"__token=\" + tokenValue;<br /> var url1 = \"?\" + executableQueryString +<br /> \"&serverURL=<%= StaticFuncs.jsEncode(userinfobean.getServerurl()) %>\" + <br /> \"&volume=<%= StaticFuncs.jsEncode(userinfobean.getVolume()) %>&\" +tokenParameter + <br /> \"&windowName=\"+tokenParameter;</span><span style=\"color: #ff0000; font-family: Courier New,Courier,monospace;\"><br />window.location.href = url1;<br /> //openPopupWindow(url1, tokenValue,800,565,\''status=yes, scrollbars=yes, resizable=yes, location=yes\'' );</span><span style=\"font-family: Courier New,Courier,monospace;\"><br />}</span></div>
<p> </p>
<h3><strong>For Report Documents</strong></h3>
<p>Modify the IPORTAL_ROOT/js/strutscommon.js to set the new browser flag to false. The following code block from this file has the change highlighted:</p>
<div class=\"xoopsCode\" style=\"border: 1px solid;\"><span style=\"font-family: Courier New,Courier,monospace;\">// View rptdocument, BIZDOCUMENT<br />else if (isIVFileType(sFileExtension))<br />{<br /> sObjectReference = \"__report=\" + encode(sFQFileName); <br /> <span style=\"color: #ff0000;\">sViewNewBrowserWindow = \''false\'';</span><br /> sUrl = sContext + g_viewrptdocumentURL + \"?\" + sObjectReference + sDecompose + \"&closex=true\";<br />}</span></div>
<p>Note: For a typical install IPORTAL_ROOT is <br />C:Program FilesActuate9iServerservletcontaineriportal (on iServer Express)<br />C:Program FilesActuate9iPortalwebappsiportal (on iPortal Workgroup)<br /><br />Ashwini</p>

Ashwini

Follow me on Twitter
Read my Blog BIRT Rocks!

Sign In or Register to comment.