Jump to content
  • Disable Save as Topic in the Ad Hoc View Data Chooser


    Friendly User
    • Features: Domains Product: JasperReports® Server

    Scenario:

    When creating the ad hoc view, user first needs to select a domain and then choose the data. At that stage, the user can choose to save his selection as a domain topic. You want to disable that feature and not allow user to save the domain topic.


    Solution:

    you can disable saving as topic for users if you edit the JSP on Tomcat side:

    1. go to /WEB-INF/jsp/templates/dataChooserFlowControls.jsp

    2. Remove or comment the following block:

      <t:addListAttribute>
        <t:addAttribute>saveTopicTab</t:addAttribute>
        <t:addAttribute>
          <spring:message code='button.chooserSaveTopic' javaScriptEscape='true'/>
        </t:addAttribute>
        <c:if test="${selectedTab eq 'saveAs'}">
          <t:addAttribute>selected</t:addAttribute>
        </c:if>
      </t:addListAttribute>
    3. Save, clean JSP cache and restart the server.


    User Feedback

    Recommended Comments

    There are no comments to display.



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...