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

Application.CustomFieldIndicatorAdd Method (Project)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Creates a test condition against the value of a custom field to determine which graphical indicator to display in place of the actual data.


expression. CustomFieldIndicatorAdd( ** FieldID, ** Test, ** Value, ** IndicatorID, ** CriteriaList, ** Index )

expression A variable that represents an Application object.


NameRequired/OptionalData TypeDescription
FieldIDRequiredLongThe custom field. Can be one of the PjCustomField constants.
TestRequiredLongThe type of comparison to perform between Value and the custom field specified by FieldID. Can be one of the PjComparison constants.
ValueRequiredStringThe value to compare with the custom field's value. If Test is pjCompareAnyValue, Value is ignored.
IndicatorIDRequiredLongThe indicator image to display when the value of the field specified with FieldID passes the comparison specified with Test. Can be one of the PjIndicator constants.
CriteriaListOptionalLongThe criteria list to which the test condition should be added. Can be one of the PjCriteriaList constants. The default value is pjCriteriaNonSummary.
IndexOptionalIntegerThe 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.

Return Value



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.

© 2018 Microsoft