saveRequirement

Saves changes made to a requirement record and unlocks the record. Use editRequirement or editRequirementByRecordID to start the editing process.

A SOAP error envelope is returned if the operation fails. If the operation fails, use cancelSaveRequirement to unlock the record instead.

Parameters

Parameter Type Description
cookie long Session cookie returned by projectLogon.
pRequirement CRequirement Edited requirement to save.

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.summary = "Requirement summary SOAP EDIT";

 

// The following line throws an exception if the operation fails.

ttsdk.saveRequirement(cookie, req);

}

catch (Exception e)

{

// The following operation unlocks the record.

ttsdk.cancelSaveRequirement(cookie, req.recordid);

}