Displaying Custom Text Field Values 
Author Message
 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!



Sun, 30 May 2004 04:54:00 GMT  
 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!



Sun, 30 May 2004 04:53:58 GMT  
 Displaying Custom Text Field Values

meabena

Replace your statement -
    projectApp.CustomFieldValueList (pjCustomTaskText3)
by -
    projectApp.CustomFieldProperties pjCustomTaskText3, pjFieldAttributeValueList, pjCalcNone, False

Regards
Venkata Krishna
MCSD

Quote:

> 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!



Sun, 30 May 2004 08:30:10 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Displaying text/input field depending on checkbox value

2. Setting values to Custom Fields on Custom Forms

3. Custom Field Value Lists on Custom Forms

4. Passing the validated fields value to custom method in a field level validation

5. create custom icon,custom combobox(to insert values)in custom toolbar

6. Custom property of type date with empty value displays 30-Dec-1899

7. Can't display Custom Resource Text1 field info in P2K

8. batch-modifying custom field values in public folder

9. Binding Custom POSSIBLE VALUES to Field Format

10. changing values of custom fields

11. Query to return custom field values in web

12. delete rows from Custom field value list

 

 
Powered by phpBB® Forum Software