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:

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:

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.


