You can use SuperADMIN to configure a blacklist of field items that you want to restrict from mapping. Users will not be able to access Map View if the table contains one of the blacklisted field items.
To configure a list of blacklisted field items, you need to:
- Find the codes for the items you want to blacklist. You can do this by adding them to a table in SuperWEB2 and clicking the code button in the table header.
Use the SuperADMIN
cfgcommand to create the blacklist:
Any changes you make to the blacklist in SuperADMIN are applied immediately. However, if you currently have the dataset open then you will not see the effect of the changes until you reselect the dataset from the catalogue.
The following example is based on the sample Retail Banking dataset and the mappable Area field. In this example we will blacklist a selection of the field items so that users cannot create maps if their table includes those items.
Go to SuperWEB2 and create a table containing the field items you want to blacklist. For example, there are a number of regions in the Area field that we might want to exclude from mapping, such as Off-Shore Areas & Migratory and Unknown.
When you have added them all to the table, select the Codes option from the drop-down menu to show the value codes:
SuperWEB2 displays the codes:
Go to SuperADMIN.
Before you add your new blacklisted field codes to the configuration, it is important to check if there are any existing blacklisted field codes already defined. This is because the
setcommand will replace any existing blacklisted codes with your new list.
Use the following command:
SuperWEB2 will either display the list of existing codes, or display "not found".
No Existing Blacklisted Field Codes Defined
If there are no existing blacklisted fields, SuperADMIN displays the following message:
In this case you can use the
setcommand to add all the new blacklisted codes. Specify each code in quotes, separated by commas and with square brackets at the start and end of the list:
Existing Blacklisted Field Codes Defined
If there are already some blacklisted codes defined, then SuperADMIN displays a list of the current blacklisted fields. For example:
In this case, if you use the
setcommand it would replace these blacklisted codes with your new list. You have two choices for updating the list to include your new codes:
addcommand to add each one individually. For example:
setcommand, but specify the existing codes in addition to the new ones (it is not important what order you list the codes in). For example:
When you have finished adding the codes in SuperADMIN, go to SuperWEB2.
There is no need to restart SuperWEB2 to see the changes, but if you already have the dataset open in SuperWEB2, you must go to the catalogue and reopen it to access your updated configuration.
Create a table containing one or more of the blacklisted field values, and verify that Map View is no longer available. Remove the blacklisted fields from your table and verify that Map View is available again:
In this example Map View is unavailable because the table contains "Off-Shore Areas & Migratory":
The Map View tab becomes available once this field value is removed from the table: