Change current field value using BeforeTaskChange event Project 20

  • Thread starter Gísli Snæbjörnsson
  • Start date
G

Gísli Snæbjörnsson

Hi.
I am trying to update the selected field value for a task using the
ProjectBeforeTaskChange event. I listen to a speciffic character '?' and if
that is entered in the field I display a list that the user should select an
item from. I am using the task.Text1 field but even if I set this value when
I return from the Eventhandler the '?' is still displaying in the field.
Any ideas on how to overwrite this value with the value selected from the
list? I have tried the following and it hasn't worked


tsk.Text1 = "123456";
tsk.SetField(PjField.pjTaskText1, "123456");
Application.ActiveCell.Task.SetField(PjField.pjTaskText2, "abcd");

None of this worked, am I perhaps missing an update call or something, like
UpdateTaskValues() ?

Thanks in advance
regards
Gísli
 
G

Gísli Snæbjörnsson

Yes the Cance variable is false. I have tried setting it to true in the end
but then it the value displayed is the previous value entered.

/gisli
 

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