Issue:
[toc on_off::hide=1]
How do I hide the back button on the report viewer? (viewReportFlow)
Resolution:
JasperReports Server >= 4.0
In the file
webapps/jasperserver-pro/WEB-INF/jsp/modules/viewReport/ViewReport.jsp
You can hide the back button here by commenting out some text. Note that the Back button is class "button capsule up first" so you'll also need to consider changing the "Options" button to this class so that it's rounded off. The thing there is that the Options button is not always shown so you'll have to edit a little bit more JSP, this should be a reasonable start though.
<div class="toolbar">
<ul class="list buttonSet">
<!-- <li class="leaf">
<button id="back" class="button capsule up first">
<span class="wrap">
<spring:message code="button.back"/>
<span class=""></span>
</span>
</button></li> -->
JasperServer versions < 4.0
In ../WEB-INF/jsp/viewReport.jsp:
Find (around line 42)
<body style="background-color:#ffffff">
<c:set var="showClose" value="${isSubflow}" scope="request"/>
<% if (("true".equals(request.getParameter("standAlone"))) || ("true".equals((String)request.getAttribute("standAlone")))) { %>
<c:set var="showClose" value='false' scope="request"/>
<% } %>
Replace:
<c:set var="showClose" value='true' scope="request"/>
with:
<c:set var="showClose" value='false' scope="request"/>
No need to restart JasperServer
Ref. Case #00020273 -- 17:28, 19 May 2011 (UTC)
Recommended Comments
There are no comments to display.