Task Based UI @ Siebel 7.8 | Next Tip »Home

Saving Actuate Reports in PDF format

OkAvarageGoodVery GoodExcellent (1 votes, average: 3.00 out of 5)
Loading ... Loading ...

Another article by Tapan. This time about actuate reports.

By default, when a report is generated and viewed in the Siebel web client, or selected from Reports Server > My Reports view, the report will be presented in Dynamic HTML (DHTML) format in the web browser. When the user clicks on the Save button , a window will popup prompting to download the report to PDF or Excel. If you select PDF and try to save, the file will be saved as the report  name itself as shown in below: 
 actuatereportsaveprompt
 
If the default behavior is changed so that the report is always presented in PDF format (skipping the DHTML format), by following method, the report name will be displayed as a URL or default[1].pdf as shown below:
reportpdfformatsaveprompt

To change this behavior so that the report output will be saved with the same name as the report name in PDF format, the user can modify viewframeset.jsp (for Actuate 7) as follows:
 

  • Navigate to the following directory:  ACTIVEPORTAL_HOME/Viewer
  • Make a backup of the viewframeset.jsp file. 
  • Use a text editor such as Notepad to open the viewframeset.jsp file.
  • Locate the line var sConnectionHandle and add the following:
     var varTitle = “<%=StaticFuncs.getDocNameForViewerTitle(bExistConnHandle, paramBean)%>”;
     So, your file will look something like this:
     <SCRIPT>
    var sConnectionHandle = (<%= bExistConnHandle %>) ? “<%= StaticFuncs.jsEncode(paramBean.getParameter(“connectionhandle”)) %>” : null;
    var varTitle = “<%=StaticFuncs.getDocNameForViewerTitle(bExistConnHandle, paramBean)%>”;
  •  Search for:
    g_reportFrameURL = “../servlet/GetReportData” + replaceDuplicateParams(replaceDuplicateParams(replaceDuplicateParams(g_objectURL , “format”, “PDF”) , “page” , g_currentPageNumber ) , “scalingfactor” , scalingFactorValue );
  •  Append + “&/”+varTitle as shown below:
    g_reportFrameURL = “../servlet/GetReportData” + replaceDuplicateParams(replaceDuplicateParams(replaceDuplicateParams(g_objectURL , “format”, “PDF”) , “page” , g_currentPageNumber ) , “scalingfactor” , scalingFactorValue ) + “&/”+varTitle;
  • Delete the Standalone folder to clear the HTTP cache and start the services.
Caution: This technique is not suggested by Siebel as it could lead to unwanted results at times
  • Share/Bookmark

Related Posts


Article by Tapan

Authors bio is coming up shortly. Tapan tagged this post with: Read 3 articles by Tapan
blog comments powered by Disqus

Polls

Do you like the new Comment System and new look to Site?

View Results

Loading ... Loading ...