
Displaying Custom Text Field Values
I am trying display a drop down list of items on the fly
(i.e. when I click a button). I use the
CustomFieldValueList and CustomFieldValueListAdd methods
to populate Text1 field with my list of values.
This almost works; the fields are getting set in the
field, but I have to go Tools > Customize > Fields, click
the ValueList custom attribute radio button (from which I
see the values from my code are in there), and then click
OK. Then that's the time I see that my drop down list
appears for Text1.
Is there another attribute I need to set or I'm calling
incorrectly?
---------------------------------------------
Dim customList1, customList2, customList3
projectApp.CustomFieldValueList (pjCustomTaskText3)
customList1 = projectApp.CustomFieldValueListAdd
(pjCustomTaskText3, "Value1", "Description1")
customList2 = projectApp.CustomFieldValueListAdd
(pjCustomTaskText3, "Value2", "Description2")
customList3 = projectApp.CustomFieldValueListAdd
(pjCustomTaskText3, "Value3", "Description3",
FieldDefault:=True)
---------------------------------------------
Thanks!