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
    <rich:toggleControl
        for="master:panel2"
        switchToState="custom"
        value="#{labels['tableView.customiseTable.range']}"
        styleClass="buttonLabel rangeLabel schemaNodeElement"
        rendered="#{item.renderRangeLink}"
        reRender="modalRanges"
        oncomplete="#{rich:component('modalRanges')}.show()">
      <f:setPropertyActionListener target="#{rangingBean.summationNode}" value="#{item}"/>
    </rich:toggleControl>
  3. Change rendered="#{item.renderRangeLink}" to rendered="false"

    XML
    <rich:toggleControl
        for="master:panel2"
        switchToState="custom"
        value="#{labels['tableView.customiseTable.range']}"
        styleClass="buttonLabel rangeLabel schemaNodeElement"
        rendered="false"
        reRender="modalRanges"
        oncomplete="#{rich:component('modalRanges')}.show()">
      <f:setPropertyActionListener target="#{rangingBean.summationNode}" value="#{item}"/>
    </rich:toggleControl>
  4. Change rendered="#{item.renderRangeLink}" to rendered="false" in the second instance of the above code.
  5. Save your changes and restart Tomcat or the SuperWEB2 service.
  6. 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.