Skip to main content
Skip table of contents

Configure Display of Annotations

SuperWEB2 can display annotations that have been configured for the dataset (learn more about how to set up and configure annotations in SuperSERVER):

A table with annotation symbols next to field names and the corresponding list of annotations beneath it

There are a number of configuration options you can change that control how annotations are displayed in SuperWEB2.

Turn off Annotations in SuperWEB2

Annotations will be displayed by default if they are configured for the dataset. To turn off the annotation panel underneath the table:

  1. Open <tomcat_home>\webapps\webapi\WEB-INF\classes\configuration.properties in a text editor.
  2. Locate the following section:

    TEXT
    table.annotations=
  3. Set the value to false.

    TEXT
    table.annotations=false
  4. Save your changes and restart Tomcat (or the SuperWEB2 service).

Configure whether the Annotation Panel is Initially Expanded

By default, the annotation panel under the table will be expanded automatically. You can change it so that it is not initially expanded:

  1. Open <tomcat_home>\webapps\webapi\WEB-INF\faces-config.xml in a text editor.
  2. Locate the following section:

    TEXT
    table.annotationPanelExpanded=
  3. Set the value to false.

    XML
    table.annotationPanelExpanded=false
  4. Save your changes and restart Tomcat (or the SuperWEB2 service).

Change the Labels on the Annotation Panel

By default, the annotation panel displays the text Show Annotation Descriptions... when it is collapsed:

The Annotation Descriptions list is collapsed and the Show Annotation Descriptions option is displayed

When it is expanded it displays the text Annotation Descriptions:

The list of Annotation Descriptions

You can change these text strings by editing <tomcat_home>\webapps\webapi\WEB-INF\classes\messages.properties

There may be multiple copies of this file for different languages and locales, with names like messages_ar.properties and messages_de.properties. Each one contains the text used for different languages. Depending in which languages are in use on your deployment, you may need to make these changes in multiple versions of the file. The properties file that is used will depend on the language settings in the end user's web browser, the set of supported locales defined in the faces-config.xml configuration file, and the language selected by the user from the drop-down list. See Multilingual and Localisation Support for more information about localisation and how SuperWEB2 uses the properties files.

  1. Open the message.properties file in a text editor.
  2. Locate the following definitions:

    TEXT
    page.tableView.annotationPanel.expandedCaption=Annotation Descriptions
    page.tableView.annotationPanel.collapsedCaption=Show Annotation Descriptions... 
  3. Change the values to your preferred text. For example:

    TEXT
    page.tableView.annotationPanel.expandedCaption=Table Annotations
    page.tableView.annotationPanel.collapsedCaption=Click to Show Annotation Details...  
  4. Save your changes to the file and restart Tomcat or the SuperWEB2 service.
  5. When the service restarts, log in and check the new labels:

    Clicking on Show Annotation Descriptions

    Annotations displayed under the heading Table Annotations

Compatability of Saved TXDs with Annotations

When you enable annotations in SuperWEB2, there are some additional restrictions on TXD support. Certain TXDs created with SuperCROSS are not supported in SuperWEB2 when annotations are enabled.

In particular, TXDs with concatenated fields that include user defined (synthetic) fields that define an inner total within the axis are not supported when annotations are enabled. If you add a TXD like this as a system table, then users will not be able to open it in SuperWEB2.

JavaScript errors detected

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

If this problem persists, please contact our support.