Skip to main content
Skip table of contents

Remove the Range Option

By default, SuperWEB2 displays a Range button next to the summation options that allows users to create custom ranges or quantiles based on that summation option:

If you do not want to allow users to access the options for creating ranges, you can disable this button:

  1. Open <tomcat_home>\webapps\webapi\tableView\schemaTree.xhtml in a text editor.

    Make a backup copy of this file before making any changes.

  2. Locate the following section (note that this appears twice in the file; you will need to find and update both instances):

    XML
    <a4j:commandButton action="#{rangingBeanProducer.resetRangingBeanAndSetSummation(item)}"
                       value="#{labels['tableView.customiseTable.range']}"
                       styleClass="activeButton treeNodeButton"
                       rendered="#{item.renderRangeLink}"
                       execute="@this"
                       render="masterRangesModal modalRanges"
                       oncomplete="RichFaces.component('modalRanges').show()"/>
  3. Change rendered="#{item.renderRangeLink}" to rendered="false" in both instances.

    XML
    <a4j:commandButton action="#{rangingBeanProducer.resetRangingBeanAndSetSummation(item)}"
                       value="#{labels['tableView.customiseTable.range']}"
                       styleClass="activeButton treeNodeButton"
                       rendered="false"
                       execute="@this"
                       render="masterRangesModal modalRanges"
                       oncomplete="RichFaces.component('modalRanges').show()"/>
  4. Save your changes and restart Tomcat or the SuperWEB2 service.
  5. Log in to SuperWEB2 and confirm that the Range button no longer displays:

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.