editLink
Retrieves a link record for editing. A saveLink operation must be used with this operation to save any changes to the record. A SOAP error envelope is returned if the operation fails.
To unlock the record without saving changes, use cancelSaveLink.
Parameters
Parameter | Type | Description |
---|---|---|
cookie | long | Session cookie returned by projectLogon. |
linkID | long | Unique link record ID. |
Return value
Value | Type |
---|---|
pLink | CLink |
Example
CLink lnk = ttsdk.editLink(cookie, 1);
try
{
lnk.comment = "Comment SOAP EDIT";
// The following line throws an exception if the operation fails.
ttsdk.saveLink(cookie, lnk);
}
catch (Exception e)
{
// The following operation unlocks the record.
ttsdk.cancelSaveLink(cookie, lnk.recordid);
}