Skip to main content
Skip table of contents

Show the Customise Table Panel when opening Saved Tables

By default, when users open a saved table from the catalogue, SuperWEB2 opens the table in Table View with the Customise Table panel (field tree) hidden:

Table View with the Fields list collapsed

If users want to edit the table, they need to expand the Customise Table panel by clicking the arrow:

If you prefer, you can configure SuperWEB2 to display the Customise Table panel by default, even when users open a saved table.

To make this change you need to edit <tomcat_home>\webapps\webapi\WEB-INF\faces-config.xml

  1. Open this file in a text editor.

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

  2. Locate the following section:

    XML
    <navigation-case>
        <from-outcome>loadTableSuccess</from-outcome>
        <to-view-id>/tableView/tableView.xhtml</to-view-id>
        <redirect/>
    </navigation-case>
  3. Change the <to-view-id> setting to /tableView/customiseTable.xhtml

    XML
    <navigation-case>
        <from-outcome>loadTableSuccess</from-outcome>
        <to-view-id>/tableView/customiseTable.xhtml</to-view-id>
        <redirect/>
    </navigation-case>
  4. Save your changes and restart Tomcat or the SuperWEB2 service.

Direct URL Behaviour

The above steps control the behaviour of the Customise Table panel for saved tables opened within an existing SuperWEB2 session (i.e., when a user who is already actively using the tool clicks to open one of the saved tables).

When users open a table via a direct URL, the Customise Table panel is also collapsed by default. If you want to change the behaviour for direct URL access then you can do so by changing the value of schemaTree.showOnDirectUrl in the configuration.properties file.

  1. Open <tomcat_home>\webapps\webapi\WEB-INF\classes\configuration.properties in a text editor.

  2. Locate the following section:

    CODE
    schemaTree.showOnDirectUrl=
  3. Set the value to true:

    CODE
    schemaTree.showOnDirectUrl=true
  4. Save your changes and restart Tomcat or the SuperWEB2 service.

JavaScript errors detected

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

If this problem persists, please contact our support.