Skip to main content
Skip table of contents

Disable Totals - SuperWEB2

When you drag field values to create a new table, SuperWEB2 automatically adds a Total row as shown below. You can disable this.

To turn off automatic totals, you need to edit the file <tomcat_home>\webapps\webapi\tableView\tableView.xhtml

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

  1. Open tableView.xhtml in a text editor.
  2. Locate the parameter totalsInitialState in this file.

    It is in the section that begins <a4j:outputPanel id="dataPanel" layout="block" ajaxRendered="false"> and will probably have the default value as shown here:

    HTML/XML
    totalsInitialState="outermosttotals"

    This default value configures SuperWEB2 to show totals for the outermost fields only.

  3. Change the value to nototals:

    HTML/XML
    totalsInitialState="nototals"

    This setting turns off totals altogether.

    It is also possible to set this parameter to alltotals (this setting configures SuperWEB2 to display totals for all fields.

  4. Save tableView.xhtml.

  5. Restart Tomcat (or the SuperWEB2 Service if you use SuperSTAR Suite).
  6. Review the changes in your browser. If you do not see the change you may need to refresh your browser's cache or restart your browser.

 

JavaScript errors detected

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

If this problem persists, please contact our support.