cancelSaveRequirement
Unlocks a requirement record locked by editRequirement or editRequirementByRecordID. Does not need to be called if saveRequirement is successful. A SOAP error envelope is returned if the operation fails.
Parameters
| Parameter | Type | Description |
|---|---|---|
| cookie | long | Session cookie returned by projectLogon. |
| recordID | long | Unique requirement record ID. |
Return value
| Value | Type | Notes |
|---|---|---|
| result | int | 0 indicates success. Check the return value in case of an error. |
Example
CRequirement req = ttsdk.editRequirement(cookie, 0, "Requirement summary", false);
try
{
req.enteredBy = "User, Invalid";
// The following line throws an exception because enteredBy is not a valid user string. (Assuming "User, Invalid" is not a real user.)
ttsdk.saveRequirement(cookie, req);
}
catch (Exception e)
{
ttsdk.cancelSaveRequirement(cookie, req.recordid);
}