Timescaledata function

J

Jim S

Hi,

I've been trying to use the timescaledata method of a task
to access the figures that I see in the yellow pane in
Task Usage. I've had some success but was wondering why I
get more than one item returned, when I only see one
figure in the yellow pane.

e.g. t.TimeScaleData(LowCheckDate, HighCheckDate,
pjTaskTimescaledCumulativeWork, pjTimescaleWeeks, 1).Item
(1).Value will generally give me the number that is in the
week column for that date, but sometimes the value is in a
different item.

So what do the different Items apply to? Do I need to
cycle through all items adding them up to replicate the
figure shown in Task Usage?

Thanks

Jim
 
J

Jan De Messemaeker

Hi,

The number of items is such that it covers the whole period from
LowCheckDate to HighCheckDate, whether there are entries in the resource
usage view or not.
HTH
 
J

Jim S

Hi Jan,

I just clocked this myself. I guess that I'm puzzled why
I'm getting multiple items when I'm specifying a single
week and using a week range. I guess that the dates are
just falling outside and causing multiple weeks that need
totalling.

Thanks
Jim
 
Top