Skip to content

Codeunit WSB_PMPJobTemplateMgt

Provides functions used for project templates.

Properties

Name Value
Access Public

Methods

wgFncCreateJobFromTemplate

Interactively create a project from project template.

wgFncJobTemplateFromTemplate

Create a project template from project template.

Parameters

Type Name Description
Record "WSB_PMPJobTemplate" vRecPMPJobTempl Target Job template.
Record "WSB_PMPJobTemplate" pRecSourcePMPJobTempl Source Job template.

wgFncValidateJobField

Validate project template field by field ID.

Parameters

Type Name Description
Record "WSB_PMPJobTemplate" vRecPMPJobTempl Job template record.
Integer pFieldId Field ID to be validated.

wlEvpOnAfterCreateJobFromTemplate

Event triggered after a project created from project template .

Parameters

Type Name Description
Record "Job" vRecJob Target Job record.
Record "WSB_PMPJobTemplate" pRecPMPJobTempl Source Job template.

wlEvpOnAfterFillJobFieldExclusionList

Event triggered after a project field exclusion list filled.

Parameters

Type Name Description
List vFieldExclusionList Field exclusion list.

wlEvpOnApplyJobTemplateOnBeforeJobGet

Event triggered before get project on apply project template.

Parameters

Type Name Description
Record "Job" vRecJob Target project record.
Record "WSB_PMPJobTemplate" pRecPMPJobTempl Source project template record.
Boolean pUpdateExistingValues Set to true when existing values must be updated.

wlEvpOnApplyTemplateOnBeforeInsertJobTemplateTaskLines

Event triggered before insert project template task lines when template applied.

Parameters

Type Name Description
Record "Job" vRecJob Target project record.
Record "WSB_PMPJobTemplate" pRecPMPJobTempl Source project template record.
Boolean vIsHandled Allows to skip insert of project template task lines.

wlEvpOnApplyTemplateOnBeforeJobModify

Event triggered before modify project when template applied.

Parameters

Type Name Description
Record "Job" vRecJob Target project record.
Record "WSB_PMPJobTemplate" pRecPMPJobTempl Source project template record.
Boolean vIsHandled Allows to skip modify of project record.

wlEvpOnApplyTemplateOnBeforeValidateFields

Event triggered before validate project fields when template applied.

Parameters

Type Name Description
RecordRef vJobRecRef Target project record reference.
RecordRef vPMPJobTemplRecRef Source project template record reference.

wlEvpOnBeforeCreateJobFromTemplate

Event triggered before create project from project template.

Parameters

Type Name Description
Record "Job" vRecJob Target project record.
Boolean vResult Is a value of vIsHandled parameter set after processing.
Boolean vIsHandled Allows to skip process of creation project from project template.

wlEvpOnBeforeInsertJobTaskFromJobTemplateTaskLine

Event triggered before create project task from project task template line.

Parameters

Type Name Description
Record "Job Task" vRecJobTask Target project task record.
Record "WSB_PMPJobTemplateTaskLine" pRecPMPJobTemplateTaskLine Source project template task line.

wlEvpOnCreateJobFromTemplateOnBeforeSelectItemTemplate

Event triggered before select item template when project created from project template.

Parameters

Type Name Description
Record "Job" pRecJob Job record.
Record "WSB_PMPJobTemplate" vRecPMPJobTempl Source project template record.

wlEvpOnInsertJobFromTemplate

Event triggered on insert of the project record when created from project template.

Parameters

Type Name Description
Record "Job" vRecJob Target project record.
Boolean vResult Is a value of vIsHandled parameter set when insert is called.
Boolean vIsHandled Allows to skip process of creation project from project template.

wlEvpOnTemplatesAreNotEmpty

Event triggered when check is done that project templates are not empty.

Parameters

Type Name Description
Boolean vResult Is a value of vIsHandled parameter set when check is called.
Boolean vIsHandled Allows to skip the check.