Back Button without decorate

0

Hi,

       am using jasperserver 4.7.0,am passing parameter decorate=no in url. it's working fine but when open drill down report and click back button for main report the decorations are come how to remove decorations while click back button too in the case of drill down and again if i click back button from main report its going repository. i want disable back button in main reports any ideas.

Thanks

 mathi

mathivanan.ideas2it's picture
Joined: Oct 12 2012 - 12:14am
Last seen: 6 years 7 months ago
<p><c:if test="${requestScope.isSubflow}"></c:if></p>
<ul><li class="leaf">
        <button class="button capsule up first" id="back">
            <span class="wrap"><spring:message code="button.back"> </spring:message></span>
        </button>
    </li>
</ul>
Harshi - 6 years 1 week ago

1 Answer:

2

Hi mathi,

Please try the below steps:

The modification needs to be done on the “\apache-tomcat\webapps\jasperserver-pro\WEB-INF\jsp\modules\viewReport\ViewReport.jsp” as follows. I tested it in version 4.5 and it works fine. Hope this will work for you too.

use "requestScope.isSubflow" check in Back button.

Regards,
Harshi

Harshi's picture
22
Joined: Sep 21 2012 - 3:39am
Last seen: 6 years 6 months ago
Harshi, Thank you very much for your kind reply and it's working fine, but i didn't get what is requestScope and ${requestScope.isSubflow} may i know that or any other reference.Thank you once again.
mathivanan.ideas2it - 6 years 9 months ago

I think you have knowledge in JSP and Servlet. You can set any attributes in request as follows:

request.setAttribute("isSubflow","true");
isSubflow is set in jaspersoft server codebase.
I retrieved the above value via expression language (EL) as ${requestScope.isSubflow}.
I suggest you to go through head first J2EE book to learn about EL.

Harshi - 6 years 9 months ago
Feedback
randomness