Is it possible to lock daily project timephased data?

O

Oakley2500

I am using Project Data Service (PDS) AssignmentsGet method to get project
timesheet data. When I put the
<IncludeTimephasedData>1</IncludeTimephasedData> tag to the xml query, all
the data is returned fine, just the way I want, divided by project,
assignment, resource and day. However, after reading the data, I need to be
able to update the daily timesheet data back to the database so that the
timephaseddata records queried, cannot be updated by users anymore through
Project Web Access. In other words, users should not be able to add, edit or
delete hours that they have put to the task for a particular day after I
have updated that daily task back to the Project Server DB from PDS (perhaps
using the AssignmentsSave method).

I noticed that there is a <ReadOnly> tag in the <TimePhasedData> segment
returned by the query:

<TimephasedData>
<Type>1</Type>
<WUID>103</WUID>
<Day>20051113000000</Day>
<Value>180000</Value>
<ReadOnly>0</ReadOnly>
<ApprovalStatus>3</ApprovalStatus>
<Approver>
</Approver>
</TimephasedData>

Can I use this <ReadOnly> tag to lock the hour information for this day? In
other words, if I set the <ReadOnly> value to 1 and pass that within the XML
to the AssignmentsSave method, will the users be able to edit the hour
information for that task for that day anymore?

If this <ReadOnly> tag cannot be used for this purpose and if somebody knows
a feasible solution for this scenario, please let me know.

Thanks.
 

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