CustomFieldIndicatorAdd Method
Creates a test condition against the value of a custom field to determine which graphical indicator to display in place of the actual data.
Syntax
expression**.CustomFieldIndicatorAdd(FieldID, Test, Value, IndicatorID, CriteriaList, Index)**
*expression * Optional. An expression that returns an Application object.
PjCustomField
pjCustomProjectEntCost1-10 | pjCustomResourceOutlineCode1-10 |
pjCustomProjectEntDate1-30 | pjCustomResourceStart1-10 |
pjCustomProjectEntDuration1-10 | pjCustomResourceText1-30 |
pjCustomProjectEntFlag1-20 | pjCustomTaskCost1-10 |
pjCustomProjectEntNumber1-40 | pjCustomTaskDate1-10 |
pjCustomProjectEntOutlineCode1-30 | pjCustomTaskDuration1-10 |
pjCustomProjectEnt1-40 | pjCustomTaskEntCost1-10 |
pjCustomResourceCost1-10 | pjCustomTaskEntDate1-30 |
pjCustomResourceDate1-10 | pjCustomTaskEntDuration1-10 |
pjCustomResourceDuration1-10 | pjCustomTaskEntFlag1-20 |
pjCustomResourceEntCost1-10 | pjCustomTaskEntNumber1-40 |
pjCustomResourceEntDate1-30 | pjCustomTaskEntOutlineCode1-30 |
pjCustomResourceEntDuration1-10 | pjCustomTaskEntText1-40 |
pjCustomResourceEntFlag1-20 | pjCustomTaskFinish1-10 |
pjCustomResourceEntNumber1-40 | pjCustomTaskFlag1-20 |
pjCustomResourceEntOutlineCode1-30 | pjCustomTaskNumber1-20 |
pjCustomResourceEntText1-40 | pjCustomTaskOutlineCode1-10 |
pjCustomResourceFinish1-10 | pjCustomTaskStart1-10 |
pjCustomResourceFlag1-20 | pjCustomTaskText1-30 |
pjCustomResourceNumber1-20 |
PjComparison
Constant | Description |
---|---|
pjCompareAnyValue | The custom field's value can be anything. |
pjCompareContains | The custom field's value contains Value. |
pjCompareContainsExactly | The custom field's value contains exactly Value. |
pjCompareEquals | The custom field's value is equal to Value. |
pjCompareGreaterThan | The custom field's value is greater than Value. |
pjCompareGreaterThanOrEqual | The custom field's value is greater than or equal to Value. |
pjCompareLessThan | The custom field's value is less than Value. |
pjCompareLessThanOrEqual | The custom field's value is less than or equal to Value. |
pjCompareNotContains | The custom field's value does not contain Value. |
pjCompareNotEqual | The custom field's value is not equal to Value. |
pjCompareNotWithin | The custom field's value is not within Value. |
pjCompareWithin | The custom field's value is within Value. |
Value Required String. The value to compare with the custom field's value. If Test is pjCompareAnyValue, Value is ignored.
PjIndicator
pjIndicatorNone | pjIndicatorFlagYellow |
pjIndicatorArrowDouble | pjIndicatorLightBulbOff |
pjIndicatorArrowDown | pjIndicatorLightBulbOn |
pjIndicatorArrowLeft | pjIndicatorMinusBlack |
pjIndicatorArrowRight | pjIndicatorMinusLime |
pjIndicatorArrowUp | pjIndicatorMinusRed |
pjIndicatorCheckMark | pjIndicatorMinusWhite |
pjIndicatorCircleBottomFill | pjIndicatorMinusYellow |
pjIndicatorCircleHollow | pjIndicatorPlusBlack |
pjIndicatorCircleLeftFill | pjIndicatorPlusLime |
pjIndicatorCircleRightFill | pjIndicatorPlusRed |
pjIndicatorCircleRoundFill | pjIndicatorPlusWhite |
pjIndicatorCircleSolidFill | pjIndicatorPlusYellow |
pjIndicatorCircleTopFill | pjIndicatorPushPin |
pjIndicatorClock | pjIndicatorQuestionMark |
pjIndicatorDashGray | pjIndicatorSphereAqua |
pjIndicatorDeleteMark | pjIndicatorSphereBlack |
pjIndicatorDiamondLime | pjIndicatorSphereBlue |
pjIndicatorDiamondRed | pjIndicatorSphereFuschia |
pjIndicatorDiamondYellow | pjIndicatorSphereGray |
pjIndicatorFaceHappyLime | pjIndicatorSphereGreen |
pjIndicatorFaceHappyYellow | pjIndicatorSphereLime |
pjIndicatorFaceSadRed | pjIndicatorSphereMaroon |
pjIndicatorFaceSadYellow | pjIndicatorSpherePurple |
pjIndicatorFaceStraightAqua | pjIndicatorSphereRed |
pjIndicatorFaceStraightYellow | pjIndicatorSphereSilver |
pjIndicatorFlagAqua | pjIndicatorSphereWhite |
pjIndicatorFlagBlue | pjIndicatorSphereYellow |
pjIndicatorFlagFuschia | pjIndicatorSquareBlack |
pjIndicatorFlagLime | pjIndicatorSquareLime |
pjIndicatorFlagRed | pjIndicatorSquareRed |
pjIndicatorFlagSilver | pjIndicatorSquareWhite |
pjIndicatorFlagWhite | pjIndicatorSquareYellow |
CriteriaList Optional Long. The criteria list to which the test condition should be added. Can be one of the following PjCriteriaList constants: pjCriteriaNonSummary, pjCriteriaSummary, or pjCriteriaProjectSummary. The default value is pjCriteriaNonSummary.
Index Optional Integer. The position to add the test condition in the list specified by CriteriaList. Tests are evaluated in ascending Index order. If Index is *n * + 2 or greater, where n is the number of existing tests, the test is added at n + 1. The default value is n + 1.
Remarks
The CustomFieldIndicatorAdd method returns a trappable error (error code 1004) if the list specified by CriteriaList is read-only because it has been set to inherit values from another list.
Applies to | Application Object
See Also | CustomFieldIndicatorDelete Method | CustomFieldIndicators Method