getColumnsForTable

Retrieves a column name from a table, which can be used in getRecordListForTable operations. 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 to retrieve columns from. 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 complete list.

Return value

Value Type
pColumnList CTableColumn[]

Example

CTableColumn[] columns = ttsdk.getColumnsForTable(cookie, "Defect");