> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# What-If Manager Widget

## Overview

| Plugin key                   | BAS Setting key                    |
| ---------------------------- | ---------------------------------- |
| `accelerator_whatif-manager` | `bas-plugin-widget-whatif-manager` |

With the What-If Manager you can examine the What-Ifs you created, delete those you no longer want, and view the audit trail of who has done what.

<Frame>
  <img src="https://mintcdn.com/activeviam/YviEhKHiQzio8y61/solutions/libraries/ui-components/5.2.22/images/What-If-Manager_1.png?fit=max&auto=format&n=YviEhKHiQzio8y61&q=85&s=ef1fb4868713362d8e085236cd819091" alt="What-If-Manager - 1" width="1289" height="543" data-path="solutions/libraries/ui-components/5.2.22/images/What-If-Manager_1.png" />
</Frame>

You can even see the difference in the data after the What-If was created.

<Frame>
  <img src="https://mintcdn.com/activeviam/YviEhKHiQzio8y61/solutions/libraries/ui-components/5.2.22/images/What-If-Manager_2.png?fit=max&auto=format&n=YviEhKHiQzio8y61&q=85&s=254509cf509da5bee6ac4e1cdd2effd1" alt="What-If-Manager - 2" width="517" height="484" data-path="solutions/libraries/ui-components/5.2.22/images/What-If-Manager_2.png" />
</Frame>

## Availability

| Solution    | Enabled |
| ----------- | ------- |
| FRTB        | ✅       |
| Market risk | ✅       |
| SIMM        | ✅       |
| CVARC       | ✅       |
| Limits      | ❌       |
| Sign-off    | ❌       |

## Settings

None: an empty object signals that the widget is enabled for the given server.

## How to disable it

### Disable universally

To disable this feature for all solutions, add this line at the end of your extension’s `activate` function to unregister the plugin:

```diff theme={"languages":{"custom":["/engine/python-sdk/0.9/languages/pycon.tmLanguage.json"]}}
const extension: ExtensionModule = {
  activate: async (configuration: Configuration) => {
    ...
+    delete configuration.pluginRegistry["widget"]["accelerator_whatif-manager"];
  }
}
```

### Disable for specific servers

To disable this feature for a given server, you must delete this feature’s settings for that server key by altering the `basSettings` parameter before calling the `activate` function.

**Example**
Disabling this feature for the `FRTB` server only:

```diff theme={"languages":{"custom":["/engine/python-sdk/0.9/languages/pycon.tmLanguage.json"]}}
+ import {produce} from "immer";
- import {activate as activateFrtb} from "@activeviam/frtb-sdk";
+ import {activate as activateFrtb, basSettings as frtbBASSettings} from "@activeviam/frtb-sdk";
 import {activate as activeMarketRisk} from "@activeviam/mr-sdk";

 const extension: ExtensionModule = {
  activate: async (configuration: Configuration) => {
    ...
+    const frtbBASSettingsWithFeatureDisabled = produce(frtbBASSettings, draft => {
+      delete draft["FRTB"]["bas-plugin-widget-whatif-manager"];
+    });

-   activateFrtb({configuration});
+   activateFrtb({configuration, basSetttings: frtbBASSettingsWithFeatureDisabled})
    activeMarketRisk({configuration});
  }
}
```
