addDropdownFieldValuesForTable

Adds list values to an existing dropdown field. The new values are appended to the end of the list. A SOAP error envelope is returned if the operation fails.

Parameters

Parameter Type Description
cookie long Session cookie returned by projectLogon.
tablename string Table name the field belongs to. Valid values: Defect, Test Case, Test Run, Requirement, Requirement Document, Test Variant, User, Customer, Task, Test Config, Links, Folder, and Report. Use getTableList to retrieve a list of available tables.
fieldname string Field name to add list values to. Use getDropdownFieldForTable to retrieve a complete list of fields.
pValueList CFieldValue[] List values to add to the field.

Return value

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

Example

CFieldValue[] fValues = new CFieldValue[2];

 

fValues[0] = new CFieldValue();

fValues[0].value = "New list value 1";

fValues[1] = new CFieldValue();

fValues[1].value = "New list value 2";

 

ttsdk.addDropdownFieldValuesForTable(cookie, "Defect", "Field name", fValues);