Using CustomFieldValueListAdd for Outline Codes field

S

Steve Paquette

I am trying to load the Lookup Values for Outline Codes using the
CustomFieldValueListAdd but is does not seem to work. I was able test it on a
text field fine.

Application.CustomFieldValueListAdd _
FieldID:=pjCustomTaskText1, _
Value:="9" ', _
Description:="Test 9", _
Index:=9

When I change it to

Application.CustomFieldValueListAdd _
FieldID:=pjCustomTaskOutlineCode1, _
Value:="9" ', _
Description:="Test 9", _
Index:=9

It doesn't work. I know the Outline Codes are a little different than
regular custom fields.

I was able to build the Outline Codes using CustomOutlineCodeEdit method. It
seems to me there needs to be other fields like Level and Parent in the
CustomFieldValueListAdd method.

Any help would be appreciated.

Thanks
 
J

Jan De Messemaeker

Hi,

CustomOutlineCodeEdit has all that (see the example in the help).
Why look for an other method?
 
Top