Skip to main content
Skip table of contents

displayoptions

This command is used to set the display precision for summation options in SuperWEB2.

This setting only applies to SuperWEB2. See Set Precision for Summation Options for more information and examples.

displayoptions <dataset_id>
Display the settings currently configured for the specified dataset.
displayoptions <dataset_id> <summation_option>
Display the settings currently configured for the specified summation option in the specified dataset.
displayoptions <dataset_id> <summation_option> set numberOfDecimalPlaces <value>
Set the display precision (number of decimal places) for the specified summation option.
displayoptions <dataset_id> <summation_option> clear numberOfDecimalPlaces
Clear any display precision setting for the specified summation option.

Use Regular Expressions

You can use regular expressions to check, set and clear multiple summation options. For example, you can use . to match a single character, and .+ to match one or more characters. For example:

CODE
> displayoptions bank .+Profit set numberOfDecimalPlaces 2
Account Profit:
    numberOfDecimalPlaces: 2
Customer Profit:
    numberOfDecimalPlaces: 2

> displayoptions bank .+ set numberOfDecimalPlaces 3
Average Account Balance:
    numberOfDecimalPlaces: 3
Account Profit:
    numberOfDecimalPlaces: 3
Accounts:
    numberOfDecimalPlaces: 3
Customer Profit:
    numberOfDecimalPlaces: 3
Customers:
    numberOfDecimalPlaces: 3
 
> displayoptions bank .+ clear numberOfDecimalPlaces
Average Account Balance:
    No display options configured
Account Profit:
    No display options configured
Accounts:
    No display options configured
Customer Profit:
    No display options configured
Customers:
    No display options configured

Escape Any Special Characters

When setting or checking the display precision settings, you must use the display name of the summation option. If the name includes any of the following special characters, then you need to escape them by using a \ before the special character:

CODE
'"<>{}[]()$*:?/|

For example, if the display name of the summation option is "Total trip spend ($000)", you would write this as follows:

CODE
displayoptions MyDatasetID "Total trip spend \(\$000\)" set numberOfDecimalPlaces 0
JavaScript errors detected

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

If this problem persists, please contact our support.