Welcome to Team System Rocks Sign in | Join | Help
in
Home Blogs Forums Photos Tutorials Files Roller
Notion Solutions Main Site

Accessing FieldDefinition Rules through the API

Last post 08-04-2008, 12:31 PM by shai_rai. 1 replies.
Sort Posts: Previous
  •  07-29-2008, 9:56 AM

    Accessing FieldDefinition Rules through the API

    Hi,

    I'm trying to access rules such as "REQUIRED" and "CANNOTLOSEVALUE" of a Team Foundation Server Work Item Type in the field definitions to try and dynamically construct my web user interface.

    Can anyone tell me how I can access these values from the API fielddefinitions?

    Thanx!
  •  08-04-2008, 12:31 PM

    Re: Accessing FieldDefinition Rules through the API

    Hello,

    Try use this code.

    private WorkItem m_workItem;
    object IWorkItemControl.WorkItemDatasource
    {
       get
       {
          return m_workItem;
       }
       set
          {
             m_workItem = (WorkItem)value;
          }
    }

    m_workItem.Fields[m_fieldName]


    Developer & Senior Consultant
    http://blogs.microsoft.co.il/blogs/shair
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems