Task Event

R

Ralf@Adcuram

Hello,

I do have a custom field (Enterprise field) with a traffic light
functionality.
In case of a change of the trafic light to yellow or red (manual action by
the user), the system should automatically ask for reason and actions which
are possible.
The input should be stored in the notes of the changed task.

In genaral I do know how to programm this. But I am struggeling in the
created class-module (ProjectBeforeTaskChange2) to populate the
Field-Variable with the right value as the field name is not one of the
pjEnterpriseStandardFields but a real custom field created via the project
web access on the 2007 Server.

In the meatime in do know the field constant of that custom field. So I am
trying the following:

Private Sub App_ProjectBeforeTaskChange2(ByVal tsk As Task, _
ByVal Field
As PjField, _
ByVal NewVal
As Variant, _
ByVal Info
As EventInfo)


If Field = FielConstanfToFielfdName(188776477) Then
If NewVal = "yellow" Then

and so on. But its not working at all. Any ideas or suggestions how to
handle this?

Thanks in advance for your input.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top