These events can be used to modify Business Central data before they are transferred into our simulation (SIM) data. This provides a flexible way for partners and customers to include additional data, such as values from flow fields, during the transfer process.
Standard Business Central flow fields (FieldClass = FlowField) are calculated dynamically and are not automatically evaluated during the data transfer into the SIM tables. Therefore, by default, these values are not included in the simulation. However, with the help of the OnBeforeTransfer
events, these fields can be manually calculated and populated during the transfer. This enables meaningful usage of such data, for example, in tooltips, bar labels, and table text, within the visual planning interface.
OnBeforeTransferMachineCenter
This event occurs on loading a machine center
[IntegrationEvent(/*IncludeSender*/false, /*GlobalVarAccess*/false)]
procedure OnBeforeTransferMachineCenter(var pMachineCenterRecord:
Record “Machine Center”; var pHandled: Boolean)
|
Data type |
Description |
var pMachineCenterRecord |
Record |
The machine center to be loaded. |
var pHandled |
Boolean |
The event will be handled if it returns true |
OnBeforeTransferProdOrder
This event occurs on loading a production order.
[IntegrationEvent(/*IncludeSender*/false, /*GlobalVarAccess*/false)]
procedure OnBeforeTransferProdOrder(var pProdOrderRecord:
Record “Production Order”; var pHandled: Boolean)
|
Data type |
Description |
var pProdOrderRecord |
Record |
The production order to be loaded. |
var pHandled |
Boolean |
The event will be handled if it returns true |
OnBeforeTransferProdOrderLine
This event occurs on loading a production order line.
[IntegrationEvent(/*IncludeSender*/false, /*GlobalVarAccess*/false)]
procedure OnBeforeTransferProdOrderLine(var pProdOrderLineRecord:
Record “Prod. Order Line”; var pHandled: Boolean)
|
Data type |
Description |
var pProdOrderLineRecord |
Record |
The production order line to be loaded. |
var pHandled |
Boolean |
The event will be handled if it returns true |
OnBeforeTransferProdOrderRoutingLine
This event occurs on loading a production order routing line.
[IntegrationEvent(/*IncludeSender*/false, /*GlobalVarAccess*/false)]
procedure OnBeforeTransferProdOrderRoutingLine(var pProdOrderRoutingLineRecord:
Record “Prod. Order Routing Line”; var pHandled: Boolean)
|
Data type |
Description |
var pProdOrderRoutingLineRecord |
Record |
The production order routing line to be loaded. |
var pHandled |
Boolean |
The event will be handled if it returns true |
OnBeforeTransferWorkCenter
This event occurs on loading a work center.
[IntegrationEvent(/*IncludeSender*/false, /*GlobalVarAccess*/false)]
procedure OnBeforeTransferWorkCenter(var pWorkCenterRecord:
Record “Work Center”; var pHandled: Boolean)
|
Data type |
Description |
var pWorkCenterRecord |
Record |
The work center to be loaded. |
var pHandled |
Boolean |
The event will be handled if it returns true |
OnBeforeTransferWorkCenterGroup
This event occurs on loading a work center group.
[IntegrationEvent(/*IncludeSender*/false, /*GlobalVarAccess*/false)]
procedure OnBeforeTransferWorkCenterGroup(var pWorkCenterGroupRecord:
Record “Work Center Group”; var pHandled: Boolean)
|
Data type |
Description |
var pWorkCenterGroupRecord |
Record |
The work center group to be loaded. |
var pHandled |
Boolean |
The event will be handled if it returns true |
Comments
0 comments
Please sign in to leave a comment.