Events of the VJS
OnAfterJobPlanningLineLoaded
This event occurs after a job planning line was loaded.
[IntegrationEvent(/*IncludeSender*/false, /*GlobalVarAccess*/false)]
procedure OnAfterJobPlanningLineLoaded(pClientGuid: Guid;
pJobPlanningLinePosition: Text; var pHandled: Boolean)
|
Data type |
Description |
Parameter: pClientGuid |
Guid |
This value is used for the global identification of VJS Control-AddIn on a page. |
var pJobPlanningLinePosition |
Text |
Position of the job planning line that was loaded. |
var pHandled |
Boolean |
The event will be handled if it returns true |
OnBeforeSaveJobPlanningLine
This event occurs before the changes on a job planning line carried out in the VJS get saved to 365 BC.
[IntegrationEvent(/*IncludeSender*/false, /*GlobalVarAccess*/false)]
procedure OnBeforeSaveJobPlanningLine(pClientGuid: Guid;
var pJobPlanningLinePosition: Text; var pSkip: Boolean; var pHandled: Boolean)
|
Data type |
Description |
Parameter: pClientGuid |
Guid |
This value is used for the global identification of VJS control add-in on a page. |
var pJobPlanningLinePosition |
Text |
The position of the job planning line to be saved. |
var pSkip |
Boolean |
Determines whether the record will be skipped or not. |
t.ar pHandled |
Boolean |
The event will be handled if it returns true. |
OnBeforeTransfer events
These events can be used to modify Business Central data before transferring them into our simulation data. Not only simple modifications are possible, but also complex ones such as the application of flowFields/Flowfilters and thus execution of self-created or already existing formulas. The changes will not be saved in the Business Central data.
The events in detail:
OnBeforeTransferJob
This event occurs on loading/reloading a job.
[IntegrationEvent(/*IncludeSender*/false, /*GlobalVarAccess*/false)]
procedure OnBeforeTransferJob(pClientGuid: Guid; var pJobRecord: Record “Job”;
var pHandled: Boolean)
|
Data type |
Description |
Parameter: pClientGuid |
Guid |
This value is used for the global identification of VJS control add-in on a page. |
var pJobRecord |
Record |
The job record to be loaded. |
var pHandled |
Boolean |
The event will be handled if it returns true |
OnBeforeTransferJobTask
This event occurs on loading/reloading a job task.
[IntegrationEvent(/*IncludeSender*/false, /*GlobalVarAccess*/false)]
procedure OnBeforeTransferJobTask(pClientGuid: Guid; var pJobTaskRecord:
Record “Job Task”; var pHandled: Boolean)
|
Data type |
Description |
Parameter: pClientGuid |
Guid |
This value is used for the global identification of VJS control add-in on a page. |
var pJobTaskRecord |
Record |
The job task record to be loaded. |
var pHandled |
Boolean |
The event will be handled if it returns true |
OnBeforeTransferJobPlanningLine
This event occurs loading/reloading a job planning line.
[IntegrationEvent(/*IncludeSender*/false, /*GlobalVarAccess*/false)]
procedure OnBeforeTransferJobPlanningLine(pClientGuid: Guid; var pJobPlanningLineRecord:
Record “Job Planning Line”; var pHandled: Boolean)
|
Data type |
Description |
Parameter: pClientGuid |
Guid |
This value is used for the global identification of VJS control add-in on a page. |
var pJobPlanningLineRecord |
Record |
The job planning line record to be loaded. |
var pHandled |
Boolean |
The event will be handled if it returns true |
OnBeforeTransferResourceGroup
This event occurs on loading/reloading a resource group.
[IntegrationEvent(/*IncludeSender*/false, /*GlobalVarAccess*/false)]
procedure OnBeforeTransferResourceGroup(pClientGuid: Guid;
var pResourceGroupRecord: Record “Resource Group”; var pHandled: Boolean)
|
Data type |
Description |
Parameter: pClientGuid |
Guid |
This value is used for the global identification of VJS control add-in on a page. |
var pResourceGroupRecord |
Record |
The resource group record to be loaded. |
var pHandled |
Boolean |
The event will be handled if it returns true |
OnBeforeTransferResource
This event occurs on loading/reloading a resource.
[IntegrationEvent(/*IncludeSender*/false, /*GlobalVarAccess*/false)]
procedure OnBeforeTransferResource (pClientGuid: Guid;
var pResourceRecord: Record “Resource”; var pHandled: Boolean)
|
Data type |
Description |
Parameter: pClientGuid |
Guid |
This value is used for the global identification of VJS control add-in on a page. |
var pResourceRecord |
Record |
The resource record to be loaded. |
var pHandled |
Boolean |
The event will be handled if it returns true |