---
title: "Events defined in Application Management"
app: "Warehouse Insight"
section: "Developer"
last_updated: "2023-06-06"
url: "https://insight-works.com/kb/warehouse-insight/events-defined-in-application-management/"
---

# Events defined in Application Management

### Properties

| **Property** | **Value** |
| --- | --- |
| Object Type | Codeunit |
| Object Subtype | Normal |
| Object ID | 23044916 |
| Accessibility Level | Public |

### Events

#### OnBeforeGetApplicationsForCache()

Use this event to subscribe to when the applications are fetched from the server for caching on the device.

##### Syntax

```
OnBeforeGetApplicationsForCache(var pdtLastFetchedOn: DateTime, var pcodLastApplication: Code[20], var piFetchSize: Integer, var ptrecEventParams: Record "IWX Event Param" temporary, var pbsOutput: BigText, pbHandled: Boolean)
```

##### Parameters

| **Parameter** | **Type** | **Description** |
| --- | --- | --- |
| _pdtLastFetchedOn_ | DateTime | The datetime (UTC) that the device last requested a fetch for. While the system is fetching additional records, this will remain static. |
| _pcodLastApplication_ | Code[20] | The last application that was fetched. This will be blank if the last request resulted in less than that “fetch\_size” being returned. |
| _piFetchSize_ | Integer | The number of records to return in this call. |
| _ptrecEventParams_ | Record “IWX Event Param” | The variables (key/value pairs) being supplied to the procedure. |
| _pbsOutput_ | BigText | The XML output. Must match expected format of device. |
| _pbHandled_ | Boolean | Set to True to prevent the base code from executing. Set to False if the base code should continue. |

#### OnBeforeCreateOverride()

Called before creating the application override, XML, and events.

##### Syntax

```
OnBeforeCreateOverride(var precApplication: Record "WHI Application", var pbShowPage: Boolean, var lbHandled: Boolean)
```

##### Parameters

| **Parameter** | **Type** | **Description** |
| --- | --- | --- |
| _precApplication_ | Record “WHI Application” | The application being overridden. |
| _pbShowPage_ | Boolean | True if the application override event page must be shown when completed. |
| _pbHandled_ | Boolean | Set to True to prevent the base code from executing. Set to False if the base code should continue. |

#### OnAfterCreateOverride()

Called after creating the application override, XML, and events.

##### Syntax

```
OnAfterCreateOverride(var precApplication: Record "WHI Application", var precApplicationOverride: Record "WHI Application", var precOverride: Record "WHI Application Override")
```

##### Parameters

| **Parameter** | **Type** | **Description** |
| --- | --- | --- |
| _precApplication_ | Record “WHI Application” | The application being overridden. |
| _precApplicationOverride_ | Record “WHI Application” | The application to use for designing the customizations. |
| _precOverride_ | Record “WHI Application Override” | The application override event handlers. |

#### OnBeforeCreateOverrideApplication()

Called before creating the application override XML.

##### Syntax

```
OnBeforeCreateOverrideApplication(var precApplication: Record "WHI Application", var precOverrideApplicationOut: Record "WHI Application", var pbHandled: Boolean)
```

##### Parameters

| **Parameter** | **Type** | **Description** |
| --- | --- | --- |
| _precApplication_ | Record “WHI Application” | The application being overridden. |
| _precOverrideApplicationOut_ | Record “WHI Application” | The application to use for designing the customizations. |
| _pbHandled_ | Boolean | Set to True to prevent the base code from executing. Set to False if the base code should continue. |

#### OnAfterCreateOverrideApplication()

Called after creating the application override XML.

##### Syntax

```
OnAfterCreateOverrideApplication(var precApplication: Record "WHI Application", var precOverrideApplicationOut: Record "WHI Application")
```

##### Parameters

| **Parameter** | **Type** | **Description** |
| --- | --- | --- |
| _precApplication_ | Record “WHI Application” | The application being overridden. |
| _precOverrideApplicationOut_ | Record “WHI Application” | The application to use for designing the customizations. |

#### OnBeforeCreateOverrideDefinition()

Called before creating the application override event handlers.

##### Syntax

```
OnBeforeCreateOverrideDefinition(var precOverrideApplication: Record "WHI Application", var precOverrideHeaderOut: Record "WHI Application Override", var pbHandled: Boolean)
```

##### Parameters

| **Parameter** | **Type** | **Description** |
| --- | --- | --- |
| _precOverrideApplication_ | Record “WHI Application” | The application to use for designing the customizations. |
| _precOverrideHeaderOut_ | Record “WHI Application Override” | The override event handlers. |
| _pbHandled_ | Boolean | Set to True to prevent the base code from executing. Set to False if the base code should continue. |

#### OnAfterCreateOverrideDefinition()

Called after creating the application override event handlers.

##### Syntax

```
OnAfterCreateOverrideDefinition(var precOverrideApplication: Record "WHI Application", var precOverrideHeaderOut: Record "WHI Application Override")
```

##### Parameters

| **Parameter** | **Type** | **Description** |
| --- | --- | --- |
| _precOverrideApplication_ | Record “WHI Application” | The application to use for designing the customizations. |
| _precOverrideHeaderOut_ | Record “WHI Application Override” | The override event handlers. |
| _pbHandled_ | Boolean | Set to True to prevent the base code from executing. Set to False if the base code should continue. |
