saveRequirementDocument

Saves changes made to a requirement document record and unlocks the record. Use editRequirementDocument or editRequirementDocumentByRecordID to start the editing process.

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

Parameters

Parameter Type Description
cookie long Session cookie returned by projectLogon.
pRequirementDocument CRequirementDocument Edited document to save.

Return value

Value Type Notes
result int 0 indicates success. Check the return value in case of an error.

Example

CRequirementDocument reqDoc = ttsdk.editRequirementDocument(cookie, 0, "Requirement document name", false);

 

try

{

reqDoc.name = "Requirement document name SOAP EDIT";

 

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

ttsdk.saveRequirementDocument(cookie, reqDoc);

}

catch (Exception e)

{

// The following option unlocks the record.

ttsdk.cancelSaveRequirementDocument(cookie, reqDoc.recordid);

}