Properties
| Property | Value |
| Object Type | Codeunit |
| Object Subtype | Normal |
| Object ID | 23044902 |
| Accessibility Level | Public |
Events
OnBeforeWriteTableBegin()
Called before writing the table beginning definition.
Syntax
OnBeforeWriteTableBegin(var piEventID: Integer, var ptxtTableName: Text, var prrefRecords: RecordRef, var pdnOutput: TextBuilder, var pbHandled: Boolean)
Parameters
| Parameter | Type | Description |
| piEventID | Integer | The event ID to get the column definitions from. |
| ptxtTableName | Text | The name of the table (header/line). |
| prrefRecords | RecordRef | The table data records. |
| pdnOutput | TextBuilder | The generated definition output. |
| pbHandled | Boolean | Set to true if the procedure has been handled. False if the base code should continue to execute. |
OnAfterWriteTableBegin()
Called after writing the table beginning definition.
Syntax
OnAfterWriteTableBegin(var piEventID: Integer, var ptxtTableName: Text, var prrefRecords: RecordRef, var pdnOutput: TextBuilder)
Parameters
| Parameter | Type | Description |
| piEventID | Integer | The event ID to get the column definitions from. |
| ptxtTableName | Text | The name of the table (header/line). |
| prrefRecords | RecordRef | The table data records. |
| pdnOutput | TextBuilder | The generated definition output. |
OnBeforeBuildSingleRow()
Called before writing the row data.
Syntax
OnBeforeBuildSingleRow(var piEventID: Integer, var prrefRecords: RecordRef, var pdnOutput: TextBuilder, var pbHandled: Boolean)
Parameters
| Parameter | Type | Description |
| piEventID | Integer | The event ID to get the column definitions from. |
| prrefRecords | RecordRef | The table data records. |
| pdnOutput | TextBuilder | The generated definition output. |
| pbHandled | Boolean | Set to true if the procedure has been handled. False if the base code should continue to execute. |
Still need help?
Ask other Business Central users in the Insight Works community, or send the details to the support team. Include the steps you took and any error message you saw.