title | keywords | f1_keywords | ms.service | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|---|
Application.CustomFieldValueList method (Project) |
vbapj.chm40 |
|
project-server |
|
7365511c-6746-869b-f8e7-d4b87c5b8e70 |
06/08/2017 |
medium |
Sets options for a value list for a custom field.
expression. CustomFieldValueList
( _FieldID_
, _ListDefault_
, _DefaultValue_
, _RestrictToList_
, _AppendNew_
, _PromptOnNew_
, _DisplayOrder_
)
expression A variable that represents an Application object.
Name | Required/Optional | Data type | Description |
---|---|---|---|
FieldID | Required | Long | The custom field. Can be one of the PjCustomField constants. |
ListDefault | Optional | Boolean | True if a value in the list functions as the default for the custom field. |
DefaultValue | Optional | String | The item in the value list that is the default for the custom field. If ListDefault is False, DefaultValue is ignored. |
RestrictToList | Optional | Boolean | True if the only values allowed in the custom field are those from the value list. |
AppendNew | Optional | Boolean | True if new values entered into the custom field are automatically added to the value list. If RestrictToList is False, AppendNew is ignored. |
PromptOnNew | Optional | Boolean | True if the user is prompted to confirm that a new value is to be added to the list. If AppendNew is False, PromptOnNew is ignored. |
DisplayOrder | Optional | Long | The order in which the items in a value list are displayed in the drop-down list for a cell. Can be one of the following PjListOrder constants: pjListOrderDefault, pjListOrderAscending, or pjListOrderDescending. |
Boolean
[!includeSupport and feedback]