HI All,
I've been recomended to ask the question here...
I'm developing a custom Webpart, that inside a PDP, is trying to save the customEnterprise field values to the Project Server 2010....
Part of the code im using is the following. It works perfectly when the Project is Checked IN and i execute it
from a .dll or console aplication:
..........
Guid sessionUid = Guid.NewGuid();
project.CheckOutProject(projectId, sessionUid, "Updating CF");
Guid jobUid = Guid.NewGuid();
project.QueueUpdateProject(jobUid, sessionUid, projectDs, false);
jobUid = Guid.NewGuid();
project.QueueCheckInProject(jobUid, projectId, false, sessionUid, "Updating CF");
..............
The problem is that i'm trying to insert this code in the CheckIN Event of the project for example..., or overwritting the save button functionality....
In that moment, obviously, the project is in CheckOut state, then i get this error code... (CICOCheckedOutInOtherSession = 10103)
What is the strategy for solving that problem??? Am i missing any possibility in the code?? May be getting the current SessionID or JobUID, is this possible??
I was thinking to launch some kind of retarded sharepoint timer, for waiting for the process of Checking in to be completed, before executing that code...
Very Thanks in advance...
Savuton