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:
Open <tomcat_home>\webapps\webapi\tableView\schemaTree.xhtml in a text editor.
Make a backup copy of this file before making any changes.
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()"/>
Change
rendered="#{item.renderRangeLink}"
torendered="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()"/>
- Save your changes and restart Tomcat or the SuperWEB2 service.
Log in to SuperWEB2 and confirm that the Range button no longer displays: