LookupTable.ReadLookupTables Method

Gets custom field lookup tables and corresponding code masks. The language parameter is used only if xmlFilter is an empty string.

Namespace:  WebSvcLookupTable
Assembly:  ProjectServerWebServices (in ProjectServerWebServices.dll)

Syntax

'Declaration
<SoapDocumentMethodAttribute("http://schemas.microsoft.com/office/project/server/webservices/LookupTable/ReadLookupTables", RequestNamespace := "http://schemas.microsoft.com/office/project/server/webservices/LookupTable/",  _
    ResponseNamespace := "http://schemas.microsoft.com/office/project/server/webservices/LookupTable/",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function ReadLookupTables ( _
    xmlFilter As String, _
    autoCheckOut As Boolean, _
    language As Integer _
) As LookupTableDataSet
'Usage
Dim instance As LookupTable
Dim xmlFilter As String
Dim autoCheckOut As Boolean
Dim language As Integer
Dim returnValue As LookupTableDataSet

returnValue = instance.ReadLookupTables(xmlFilter, _
    autoCheckOut, language)
[SoapDocumentMethodAttribute("http://schemas.microsoft.com/office/project/server/webservices/LookupTable/ReadLookupTables", RequestNamespace = "http://schemas.microsoft.com/office/project/server/webservices/LookupTable/", 
    ResponseNamespace = "http://schemas.microsoft.com/office/project/server/webservices/LookupTable/", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public LookupTableDataSet ReadLookupTables(
    string xmlFilter,
    bool autoCheckOut,
    int language
)

Parameters

  • autoCheckOut
    Type: System.Boolean
    If true, check out for making changes.

Return Value

Type: WebSvcLookupTable.LookupTableDataSet

Remarks

The primary DataTable in a LookupTableDataSet is the LookupTablesDataTable.

Note

The xmlFilter parameter works with the Criteria operators to filter rows only in the primary LookupTablesDataTable. For example, you cannot use filter with the ReadLookupTables method to filter rows in the LookupTableTreesDataTable. If you try to filter rows in a secondary DataTable, the PSI returns a FilterInvalid exception.

However, you can use the Fields.Add method to filter columns in the primary LookupTablesDataTable and the in secondary LookupTableTreesDataTable and LookupTableMasksDataTable.

Project Server Permissions

Permission

Description

LogOnToProjectServerFromProjectProfessional

Connect to the Project Server database from Project Professional. Global permission.

ManageEnterpriseCustomFields

Modify the definitions of Enterprise custom fields and lookup table values. Global permission.

See Also

Reference

LookupTable Class

LookupTable Members

WebSvcLookupTable Namespace

Other Resources

How to: Use a Filter Parameter with PSI Methods

Locale ID (LCID) Chart