# SystemStatusApi

Canonical page: https://www.adaptabletools.com/docs/reference/systemstatusapi

Provides access to System Status Module and associated state

```ts title="TypeScript"
export interface SystemStatusApi 
```

## Methods

| Method | Returns | Description |
| --- | --- | --- |
| [deleteAllSystemStatusMessages()](https://www.adaptabletools.com/docs/reference/systemstatusapi.md#deleteallsystemstatusmessages) | `void` | Deletes all System Status messages |
| [getCurrentSystemStatusMessageInfo()](https://www.adaptabletools.com/docs/reference/systemstatusapi.md#getcurrentsystemstatusmessageinfo) | [`SystemStatusMessageInfo`](https://www.adaptabletools.com/docs/reference/systemstatusmessageinfo.md)` \| undefined` | The System Status message currently on display. |
| [openSystemStatusSettingsPanel()](https://www.adaptabletools.com/docs/reference/systemstatusapi.md#opensystemstatussettingspanel) | `void` | Opens Settings Panel with System Status section selected and visible |
| [setErrorSystemStatus(statusMessage, furtherInformation)](https://www.adaptabletools.com/docs/reference/systemstatusapi.md#seterrorsystemstatus) | `void` | Sets an Error System Status message. |
| [setInfoSystemStatus(statusMessage, furtherInformation)](https://www.adaptabletools.com/docs/reference/systemstatusapi.md#setinfosystemstatus) | `void` | Sets an Info System Status message. |
| [setSuccessSystemStatus(statusMessage, furtherInformation)](https://www.adaptabletools.com/docs/reference/systemstatusapi.md#setsuccesssystemstatus) | `void` | Sets a Success System Status message. |
| [setSystemStatus(statusMessage, messageType, statusFurtherInformation)](https://www.adaptabletools.com/docs/reference/systemstatusapi.md#setsystemstatus) | `void` | Sets the System Status message shown in the System Status toolbar, tool panel and popup. |
| [setWarningSystemStatus(statusMessage, furtherInformation)](https://www.adaptabletools.com/docs/reference/systemstatusapi.md#setwarningsystemstatus) | `void` | Sets a Warning System Status message. |

## Method Details

### deleteAllSystemStatusMessages

Deletes all System Status messages

```ts title="TypeScript"
deleteAllSystemStatusMessages(): void;
```

###### Returns

`void`

### getCurrentSystemStatusMessageInfo

The System Status message currently on display.

```ts title="TypeScript"
getCurrentSystemStatusMessageInfo(): SystemStatusMessageInfo | undefined;
```

###### Returns

 The current message, or `undefined` when none is set

[`SystemStatusMessageInfo`](https://www.adaptabletools.com/docs/reference/systemstatusmessageinfo.md)` | undefined`

### openSystemStatusSettingsPanel

Opens Settings Panel with System Status section selected and visible

```ts title="TypeScript"
openSystemStatusSettingsPanel(): void;
```

###### Returns

`void`

### setErrorSystemStatus

Sets an Error System Status message.

```ts title="TypeScript"
setErrorSystemStatus(statusMessage: string, furtherInformation?: string): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| statusMessage | `string` | Text of the message |
| furtherInformation | `string` | Optional longer text shown with the message |

###### Returns

`void`

### setInfoSystemStatus

Sets an Info System Status message.

```ts title="TypeScript"
setInfoSystemStatus(statusMessage: string, furtherInformation?: string): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| statusMessage | `string` | Text of the message |
| furtherInformation | `string` | Optional longer text shown with the message |

###### Returns

`void`

### setSuccessSystemStatus

Sets a Success System Status message.

```ts title="TypeScript"
setSuccessSystemStatus(statusMessage: string, furtherInformation?: string): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| statusMessage | `string` | Text of the message |
| furtherInformation | `string` | Optional longer text shown with the message |

###### Returns

`void`

### setSystemStatus

Sets the System Status message shown in the System Status toolbar, tool panel and popup.

```ts title="TypeScript"
setSystemStatus(statusMessage: string, messageType: 'Success' | 'Info' | 'Warning' | 'Error', statusFurtherInformation?: string): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| statusMessage | `string` | Text of the message |
| messageType | `'Success' \| 'Info' \| 'Warning' \| 'Error'` | `Success`, `Info`, `Warning` or `Error`. Sets the colour of the message |
| statusFurtherInformation | `string` | Optional longer text shown with the message |

###### Returns

`void`

### setWarningSystemStatus

Sets a Warning System Status message.

```ts title="TypeScript"
setWarningSystemStatus(statusMessage: string, furtherInformation?: string): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| statusMessage | `string` | Text of the message |
| furtherInformation | `string` | Optional longer text shown with the message |

###### Returns

`void`
