KVSPSAJobTeamManagement#
Procedures#
UpdateJobInJobTeam(Integer, Record Job) :#
Summary: This procedure updates the job team setup based on the changes made to the job record.
procedure UpdateJobInJobTeam(FieldNo: Integer; var Job: Record "Job"):
Parameters:
FieldNo
: Integer used for show which field had changed.Job
: Record used for assigning value.
UpdateTeamSetupFromJob(Code[20], Code[20], Enum KVSPSAJobTitle, Record Job) :#
Summary: This procedure updates or create the job team setup based on the changes made to the job record.
procedure UpdateTeamSetupFromJob(OldResourceNo: Code[20]; NewResourceNo: Code[20]; NewJobTitle: Enum "KVSPSAJobTitle"; var Job: Record "Job"):
Parameters:
OldResourceNo
: Code used for check condition.NewResourceNo
: Code used for check condition.NewJobTitle
: Enum used for check condition.Job
: Record used for assigning value.
UpdateTeamSetupFromPSPLine(Code[20], Code[20], Enum KVSPSAJobTitle, Record KVSPSAJobPSPLine) :#
Summary: This procedure updates or creates the job team setup based on the changes made to the job PSP line record.
procedure UpdateTeamSetupFromPSPLine(OldResourceNo: Code[20]; NewResourceNo: Code[20]; NewJobTitle: Enum "KVSPSAJobTitle"; JobPSPLine: Record "KVSPSAJobPSPLine"):
Parameters:
OldResourceNo
: Code used for check condition.NewResourceNo
: Code used for check condition.NewJobTitle
: Enum used for check condition.JobPSPLine
: Record used for assigning value.
Events#
KVSPSAHandleOwnFieldOnUpdateJobInJobTeam(Integer, Record Job, Record KVSPSAJob Team Setup, Boolean) :#
Summary: Event handler for processing custom field updates in job records through job team management. Allows extensions to handle specific field updates with custom logic. This event enables extensions to implement custom field update logic for specific fields when jobs are updated through the job team management system.
[IntegrationEvent(false, false)]
local procedure KVSPSAHandleOwnFieldOnUpdateJobInJobTeam(FieldNo: Integer; var Job: Record "Job"; var JobTeamSetup: Record "KVSPSAJob Team Setup"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJobTeamManagement", 'KVSPSAHandleOwnFieldOnUpdateJobInJobTeam', '', false, false)]
local procedure DoSomethingKVSPSAHandleOwnFieldOnUpdateJobInJobTeam(FieldNo: Integer; var Job: Record "Job"; var JobTeamSetup: Record "KVSPSAJob Team Setup"; var IsHandled: Boolean)
begin
end;
Parameters:
FieldNo
: The field number being updated in the job record.Job
: The job record being updated. Can be modified by extensions.JobTeamSetup
: The job team setup record providing context for the update.IsHandled
: Set to true to indicate that the field update has been handled by the extension.
KVSPSAOnBeforeInsertNewJobTeamOnUpdateTeamSetupFromJob(Code[20], Enum KVSPSAJobTitle, Record Job, Record KVSPSAJob Team Setup) :#
Summary: Event fired before inserting a new job team member during team setup updates from job data. Allows extensions to modify job team creation from job information. This event enables custom processing before new job team members are added when updating team setup based on changes in job master data.
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeInsertNewJobTeamOnUpdateTeamSetupFromJob(NewResourceNo: Code[20]; NewJobTitle: Enum "KVSPSAJobTitle"; var Job: Record "Job"; var JobTeamSetup: Record "KVSPSAJob Team Setup"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJobTeamManagement", 'KVSPSAOnBeforeInsertNewJobTeamOnUpdateTeamSetupFromJob', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeInsertNewJobTeamOnUpdateTeamSetupFromJob(NewResourceNo: Code[20]; NewJobTitle: Enum "KVSPSAJobTitle"; var Job: Record "Job"; var JobTeamSetup: Record "KVSPSAJob Team Setup")
begin
end;
Parameters:
NewResourceNo
: The resource number for the new job team member being added.NewJobTitle
: The job title/role for the new job team member.Job
: The job record providing context for the team update.JobTeamSetup
: The job team setup record being updated. Can be modified by extensions.
KVSPSAOnBeforeInsertNewJobTeamOnUpdateTeamSetupFromWBSLine(Code[20], Enum KVSPSAJobTitle, Record KVSPSAJobPSPLine, Record KVSPSAJob Team Setup) :#
Summary: Event fired before inserting a new job team member during team setup updates from WBS (Work Breakdown Structure) line data. Allows extensions to modify team creation from WBS information. This event enables custom processing before new job team members are added when updating team setup based on changes in job PSP (Project Structure Plan) line data.
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeInsertNewJobTeamOnUpdateTeamSetupFromWBSLine(NewResourceNo: Code[20]; NewJobTitle: Enum "KVSPSAJobTitle"; JobPSPLine: Record "KVSPSAJobPSPLine"; var JobTeamSetup: Record "KVSPSAJob Team Setup"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJobTeamManagement", 'KVSPSAOnBeforeInsertNewJobTeamOnUpdateTeamSetupFromWBSLine', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeInsertNewJobTeamOnUpdateTeamSetupFromWBSLine(NewResourceNo: Code[20]; NewJobTitle: Enum "KVSPSAJobTitle"; JobPSPLine: Record "KVSPSAJobPSPLine"; var JobTeamSetup: Record "KVSPSAJob Team Setup")
begin
end;
Parameters:
NewResourceNo
: The resource number for the new job team member being added.NewJobTitle
: The job title/role for the new job team member.JobPSPLine
: The job PSP line providing context and data for the team update.JobTeamSetup
: The job team setup record being updated. Can be modified by extensions.
KVSPSAOnBeforeUpdateExistingJobTeamOnUpdateTeamSetupFromJob(Code[20], Enum KVSPSAJobTitle, Record Job, Record KVSPSAJob Team Setup) :#
Summary: Event fired before updating an existing job team member during team setup updates from job data. Allows extensions to modify job team updates from job information. This event enables custom processing before existing job team members are updated when team setup is modified based on changes in job master data.
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeUpdateExistingJobTeamOnUpdateTeamSetupFromJob(NewResourceNo: Code[20]; NewJobTitle: Enum "KVSPSAJobTitle"; var Job: Record "Job"; var JobTeamSetup: Record "KVSPSAJob Team Setup"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJobTeamManagement", 'KVSPSAOnBeforeUpdateExistingJobTeamOnUpdateTeamSetupFromJob', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeUpdateExistingJobTeamOnUpdateTeamSetupFromJob(NewResourceNo: Code[20]; NewJobTitle: Enum "KVSPSAJobTitle"; var Job: Record "Job"; var JobTeamSetup: Record "KVSPSAJob Team Setup")
begin
end;
Parameters:
NewResourceNo
: The resource number for the job team member being updated.NewJobTitle
: The job title/role for the job team member being updated.Job
: The job record providing context for the team update.JobTeamSetup
: The job team setup record being updated. Can be modified by extensions.
KVSPSAOnBeforeUpdateExistingJobTeamOnUpdateTeamSetupFromWBSLine(Code[20], Enum KVSPSAJobTitle, Record KVSPSAJobPSPLine, Record KVSPSAJob Team Setup) :#
Summary: Event fired before updating an existing job team member during team setup updates from WBS (Work Breakdown Structure) line data. Allows extensions to modify team updates from WBS information. This event enables custom processing before existing job team members are updated when team setup is modified based on changes in job PSP (Project Structure Plan) line data.
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeUpdateExistingJobTeamOnUpdateTeamSetupFromWBSLine(NewResourceNo: Code[20]; NewJobTitle: Enum "KVSPSAJobTitle"; JobPSPLine: Record "KVSPSAJobPSPLine"; var JobTeamSetup: Record "KVSPSAJob Team Setup"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJobTeamManagement", 'KVSPSAOnBeforeUpdateExistingJobTeamOnUpdateTeamSetupFromWBSLine', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeUpdateExistingJobTeamOnUpdateTeamSetupFromWBSLine(NewResourceNo: Code[20]; NewJobTitle: Enum "KVSPSAJobTitle"; JobPSPLine: Record "KVSPSAJobPSPLine"; var JobTeamSetup: Record "KVSPSAJob Team Setup")
begin
end;
Parameters:
NewResourceNo
: The resource number for the job team member being updated.NewJobTitle
: The job title/role for the job team member being updated.JobPSPLine
: The job PSP line providing context and data for the team update.JobTeamSetup
: The job team setup record being updated. Can be modified by extensions.
KVSPSAOnBeforeUpdateJobInJobTeam(Integer, Record Job, Record KVSPSAJob Team Setup, Boolean) :#
Summary: Event fired before updating job records through job team management. Allows extensions to customize or skip job update processing. This event enables extensions to implement custom job update logic or bypass standard job updates when specific field changes are processed through job team management.
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeUpdateJobInJobTeam(FieldNo: Integer; var Job: Record "Job"; var JobTeamSetup: Record "KVSPSAJob Team Setup"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJobTeamManagement", 'KVSPSAOnBeforeUpdateJobInJobTeam', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeUpdateJobInJobTeam(FieldNo: Integer; var Job: Record "Job"; var JobTeamSetup: Record "KVSPSAJob Team Setup"; var IsHandled: Boolean)
begin
end;
Parameters:
FieldNo
: The field number being updated in the job record.Job
: The job record being updated. Can be modified by extensions.JobTeamSetup
: The job team setup record providing context for the update.IsHandled
: Set to true to skip the standard job update process for this field.
KVSPSAOnUpdateOldTeamSetupFromJobElse(Code[20], Code[20], Enum KVSPSAJobTitle, Record Job, Record KVSPSAJob Team Setup, Boolean) :#
Summary: Event fired during old team setup updates from job data when the default processing doesn't handle the scenario. Allows extensions to provide custom handling for team setup changes. This event enables custom processing when updating team setup from job changes where standard logic doesn't apply to the specific resource/title combination.
[IntegrationEvent(false, false)]
local procedure KVSPSAOnUpdateOldTeamSetupFromJobElse(OldResourceNo: Code[20]; NewResourceNo: Code[20]; NewJobTitle: Enum "KVSPSAJobTitle"; var Job: Record "Job"; var JobTeamSetup: Record "KVSPSAJob Team Setup"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJobTeamManagement", 'KVSPSAOnUpdateOldTeamSetupFromJobElse', '', false, false)]
local procedure DoSomethingKVSPSAOnUpdateOldTeamSetupFromJobElse(OldResourceNo: Code[20]; NewResourceNo: Code[20]; NewJobTitle: Enum "KVSPSAJobTitle"; var Job: Record "Job"; var JobTeamSetup: Record "KVSPSAJob Team Setup"; var IsHandled: Boolean)
begin
end;
Parameters:
OldResourceNo
: The previous resource number in the team setup.NewResourceNo
: The new resource number being assigned.NewJobTitle
: The new job title/role being assigned.Job
: The job record providing context for the team setup change.JobTeamSetup
: The job team setup record being updated. Can be modified by extensions.IsHandled
: Set to true to indicate that the team setup update has been handled by the extension.
KVSPSAOnUpdateOldTeamSetupFromPSPLineElse(Code[20], Code[20], Enum KVSPSAJobTitle, Record KVSPSAJobPSPLine, Record KVSPSAJob Team Setup, Boolean) :#
Summary: Event fired during old team setup updates from PSP line data when the default processing doesn't handle the scenario. Allows extensions to provide custom handling for team setup changes. This event enables custom processing when updating team setup from PSP line changes where standard logic doesn't apply to the specific resource/title combination.
[IntegrationEvent(false, false)]
local procedure KVSPSAOnUpdateOldTeamSetupFromPSPLineElse(OldResourceNo: Code[20]; NewResourceNo: Code[20]; NewJobTitle: Enum "KVSPSAJobTitle"; JobPSPLine: Record "KVSPSAJobPSPLine"; var JobTeamSetup: Record "KVSPSAJob Team Setup"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJobTeamManagement", 'KVSPSAOnUpdateOldTeamSetupFromPSPLineElse', '', false, false)]
local procedure DoSomethingKVSPSAOnUpdateOldTeamSetupFromPSPLineElse(OldResourceNo: Code[20]; NewResourceNo: Code[20]; NewJobTitle: Enum "KVSPSAJobTitle"; JobPSPLine: Record "KVSPSAJobPSPLine"; var JobTeamSetup: Record "KVSPSAJob Team Setup"; var IsHandled: Boolean)
begin
end;
Parameters:
OldResourceNo
: The previous resource number in the team setup.NewResourceNo
: The new resource number being assigned.NewJobTitle
: The new job title/role being assigned.JobPSPLine
: The job PSP line providing context and data for the team setup change.JobTeamSetup
: The job team setup record being updated. Can be modified by extensions.IsHandled
: Set to true to indicate that the team setup update has been handled by the extension.