S
Stephan Steiner
Hi
I've written a software to automatically publish certain tasks. I have the
TaskUID of the tasks I need to publish so I iterate through the tasks in a
project once opened, and compare Task.UniqueID with the UIDs I have. If I
have found the proper UID, I call Application.SelectRow(Task.ID, false,
Missing.Value, Missing.Value, true)
When I tested the software, that seemed to work fine. However, now one week
after going into service, I was informed about a case (I can't say for sure
if it's the only one.. I think I've seen some other stuff that was off.. but
by one line which is not that much of a problem because I don't think the
summary task needs to be published explicitly anyway) where I select 4 lines
for publishing, but the resource got to see just two (the summary task and
one of the actual tasks).
In stepping through the code, I have confirmed that I definitely give the
proper parameters to Application.SelectRow (the Task.ID corresponds to the
line number in project client) - however, what then happens is that the line
Task.ID + 3 is selected. Needless to say that's not the line I want to
select.
Is there anything that could explain this behavior and how can I prevent it
from happening?
Regards
Stephan
I've written a software to automatically publish certain tasks. I have the
TaskUID of the tasks I need to publish so I iterate through the tasks in a
project once opened, and compare Task.UniqueID with the UIDs I have. If I
have found the proper UID, I call Application.SelectRow(Task.ID, false,
Missing.Value, Missing.Value, true)
When I tested the software, that seemed to work fine. However, now one week
after going into service, I was informed about a case (I can't say for sure
if it's the only one.. I think I've seen some other stuff that was off.. but
by one line which is not that much of a problem because I don't think the
summary task needs to be published explicitly anyway) where I select 4 lines
for publishing, but the resource got to see just two (the summary task and
one of the actual tasks).
In stepping through the code, I have confirmed that I definitely give the
proper parameters to Application.SelectRow (the Task.ID corresponds to the
line number in project client) - however, what then happens is that the line
Task.ID + 3 is selected. Needless to say that's not the line I want to
select.
Is there anything that could explain this behavior and how can I prevent it
from happening?
Regards
Stephan