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.
- Open tableView.xhtml in a text editor.
-
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/XMLtotalsInitialState="outermosttotals"
This default value configures SuperWEB2 to show totals for the outermost fields only.
-
Change the value to nototals:
HTML/XMLtotalsInitialState="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.
-
Save tableView.xhtml.
- Restart Tomcat (or the SuperWEB2 Service if you use SuperSTAR Suite).
- 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.