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

# Events defined in Advanced Count Management

### Properties

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

### Events

#### OnAfterFilterLookupCountSheets()

Called after filters have been applied to the count sheet records.

##### Syntax

```
OnAfterFilterLookupCountSheets(var precCountSheetConfig: Record "IWX Count Sheet Configuration", var pcodLocationCode: Code[10], var psFilter: Text)
```

##### Parameters

| **Parameter** | **Type** | **Description** |
| --- | --- | --- |
| _precCountSheetConfig_ | Record “IWX Count Sheet Configuration” | The count sheet records to filter. |
| _pcodLocationCode_ | Code[10] | The location code to filter the records to. |
| _psFilter_ | Text | The filter text supplied by the user. |

#### OnBeforeGetDocumentList()

Called prior to executing the document list event.

##### Syntax

```
OnBeforeGetDocumentList(var ptrecEventParams: Record "IWX Event Param" temporary, var pbsOutput: BigText, var pbHandled: Boolean)
```

##### Parameters

| **Parameter** | **Type** | **Description** |
| --- | --- | --- |
| _ptrecEventParams_ | Record “IWX Event Param” | The variables (key/value pairs) being supplied to the procedure. |
| _pbsOutput_ | BigText | The output text to return back to the device. |
| _pbHandled_ | Boolean | Set to true if the event has been handled. False if the base code should continue to execute. |

#### OnAfterGetDocumentList()

Called after the document list event has completed.

##### Syntax

```
OnAfterGetDocumentList(var ptrecEventParams: Record "IWX Event Param" temporary, var pbsOutput: BigText)
```

##### Parameters

| **Parameter** | **Type** | **Description** |
| --- | --- | --- |
| _ptrecEventParams_ | Record “IWX Event Param” | The variables (key/value pairs) being supplied to the procedure. |
| _pbsOutput_ | BigText | The output text to return back to the device. |

#### OnBeforePostSheet()

Called prior to executing the post event.

##### Syntax

```
OnBeforePostSheet(var ptrecEventParams: Record "IWX Event Param" temporary, var pbsOutput: BigText, var pbHandled: Boolean)
```

##### Parameters

| **Parameter** | **Type** | **Description** |
| --- | --- | --- |
| _ptrecEventParams_ | Record “IWX Event Param” | The variables (key/value pairs) being supplied to the procedure. |
| _pbsOutput_ | BigText | The output text to return back to the device. |
| _pbHandled_ | Boolean | Set to true if the event has been handled. False if the base code should continue to execute. |

#### OnAfterPostSheet()

Called after executing the post event.

##### Syntax

```
OnAfterPostSheet(var ptrecEventParams: Record "IWX Event Param" temporary, var pbsOutput: BigText)
```

##### Parameters

| **Parameter** | **Type** | **Description** |
| --- | --- | --- |
| _ptrecEventParams_ | Record “IWX Event Param” | The variables (key/value pairs) being supplied to the procedure. |
| _pbsOutput_ | BigText | The output text to return back to the device. |

#### OnBeforeExecutePost()

Called before executing the post call.

##### Syntax

```
OnBeforeExecutePost(var precDeviceConfig: Record "WHI Device Configuration", var pcodCountNumber: Code[20], var pcodSheetName: Code[20], var pcodBatchName: Code[10], var pcodWhseBatchName: Code[10], var pbPostedWhse: Boolean, var pbPostedItem: Boolean, var pbHandled: Boolean)
```

##### Parameters

| **Parameter** | **Type** | **Description** |
| --- | --- | --- |
| _precDeviceConfig_ | Record “WHI Device Configuration” | The device configuration. |
| _pcodCountNumber_ | Code[20] | The count number. |
| _pcodSheetName_ | Code[20] | The sheet name. |
| _pcodBatchName_ | Code[10] | The inventory batch to use. |
| _pcodWhseBatchName_ | Code[10] | The warehouse inventory batch to use. |
| _pbPostedWhse_ | Boolean |   |
| _pbPostedItem_ | Boolean |   |
| _pbHandled_ | Boolean | Set to true if the posting has been handled. False if the base code should continue to post. |
