Table of contents
TOC
Collapse the table of content
Expand the table of content

Application.ProjectBeforeResourceChange2 Event (Project)

office 365 dev account|Last Updated: 10/19/2017
|
2 Contributors

Occurs before the user changes the value of a resource field. Uses the EventInfo object parameter.

Syntax

expression. ProjectBeforeResourceChange2 (res, Field, NewVal, Info)

expression A variable that represents an Application object.

Parameters

NameRequired/OptionalData TypeDescription
resRequiredResourceThe resource whose field is being changed.
FieldRequiredLongThe field being changed. If more than one field is changed by the user, the event is fired for each field changed. Can be one of the PjField constants.
NewValRequiredVariantThe new value for the field specified with Field.
InfoRequiredEventInfoEventInfo.Cancel is False when the event occurs. If the event procedure sets this argument to True, the value for the field specified with Field is not changed.


PjField constants

pjResourceAccrueAtpjResourceEnterpriseUniqueID
pjResourceActualCostpjResourceFinish
pjResourceActualOvertimeCostpjResourceFinish1-10
pjResourceActualOvertimeWorkpjResourceFlag1-20
pjResourceActualOvertimeWorkProtectedpjResourceGroup
pjResourceActualWorkpjResourceGroupBySummary
pjResourceActualWorkProtectedpjResourceHyperlink
pjResourceACWPpjResourceHyperlinkAddress
pjResourceAssignmentDelaypjResourceHyperlinkHref
pjResourceAssignmentUnitspjResourceHyperlinkScreenTip
pjResourceAvailableFrompjResourceHyperlinkSubAddress
pjResourceAvailableTopjResourceID
pjResourceBaseCalendarpjResourceIndex
pjResourceBaseline1-10CostpjResourceIndicators
pjResourceBaseline1-10FinishpjResourceInitials
pjResourceBaseline1-10StartpjResourceIsAssignment
pjResourceBaseline1-10WorkpjResourceLevelingDelay
pjResourceBaselineCostpjResourceLinkedFields
pjResourceBaselineFinishpjResourceMaterialLabel
pjResourceBaselineStartpjResourceMaxUnits
pjResourceBaselineWorkpjResourceName
pjResourceBCWPpjResourceNotes
pjResourceBCWSpjResourceNumber1-20
pjResourceBookingTypepjResourceObjects
pjResourceCanLevelpjResourceOutlineCode1-10
pjResourceCodepjResourceOverallocated
pjResourceConfirmedpjResourceOvertimeCost
pjResourceCostpjResourceOvertimeRate
pjResourceCost1-10pjResourceOvertimeWork
pjResourceCostPerUsepjResourcePeakUnits
pjResourceCostRateTablepjResourcePercentWorkComplete
pjResourceCostVariancepjResourcePhonetics
pjResourceCreatedpjResourceProject
pjResourceCVpjResourceRegularWork
pjResourceDate1-10pjResourceRemainingCost
pjResourceDemandedRequestedpjResourceRemainingOvertimeCost
pjResourceDuration1-10pjResourceRemainingOvertimeWork
pjResourceEMailAddresspjResourceRemainingWork
pjResourceEnterprisepjResourceResponsePending
pjResourceEnterpriseBaseCalendarpjResourceSheetNotes
pjResourceEnterpriseCheckedOutBypjResourceStandardRate
pjResourceEnterpriseCost1-10pjResourceStart
pjResourceEnterpriseDate1-30pjResourceStart1-10
pjResourceEnterpriseDuration1-10pjResourceSV
pjResourceEnterpriseFlag1-20pjResourceTaskSummaryName
pjResourceEnterpriseGenericpjResourceTeamStatusPending
pjResourceEnterpriseInactivepjResourceText1-30
pjResourceEnterpriseIsCheckedOutpjResourceType
pjResourceEnterpriseLastModifiedDatepjResourceUniqueID
pjResourceEnterpriseMultiValue20-29pjResourceUpdateNeeded
pjResourceEnterpriseNameUsedpjResourceVAC
pjResourceEnterpriseNumber1-40pjResourceWindowsUserAccount
pjResourceEnterpriseOutlineCode1-29pjResourceWork
pjResourceEnterpriseRBSpjResourceWorkContour
pjResourceEnterpriseRequiredValuespjResourceWorkgroup
pjResourceEnterpriseTeamMemberpjResourceWorkVariance
pjResourceEnterpriseText1-40


Return value

Nothing

Remarks

Project events do not occur when the project is embedded in another document or application.

The ProjectBeforeResourceChange2 event doesn't occur when timescaled data changes, when a baseline is cleared, when an entire resource row is pasted, during resource pool operations, when inserting or removing a subproject, or when changes have been made by using a custom form.

© 2018 Microsoft