V
Vybez
I've been trying to update standard rates for resources using the PSI to no
avail.
Firstly, the ResourceDataSet does not allow direct access to the standard
rate as it does to other fields. e.g. to access the resource name you can
use: resourceDs.Resources[1].RES_NAME
but to access the resource rate you would use:
resourceDs.Resources[1]["RES_STD_RATE"]
which is not part of the properties of .Resources.
After updating the rate by using, say:
resourceDs.Resources[1]["RES_STD_RATE"] = 430
the update reflects in the ResourceDataSet, but when you do the final update
to Project Server by using:
resourceSvc.UpdateResources(resourceDs, false, true);
the changes do not reflect in the Resource Pool.
Does anyone know how to achieve this?
avail.
Firstly, the ResourceDataSet does not allow direct access to the standard
rate as it does to other fields. e.g. to access the resource name you can
use: resourceDs.Resources[1].RES_NAME
but to access the resource rate you would use:
resourceDs.Resources[1]["RES_STD_RATE"]
which is not part of the properties of .Resources.
After updating the rate by using, say:
resourceDs.Resources[1]["RES_STD_RATE"] = 430
the update reflects in the ResourceDataSet, but when you do the final update
to Project Server by using:
resourceSvc.UpdateResources(resourceDs, false, true);
the changes do not reflect in the Resource Pool.
Does anyone know how to achieve this?