TFS自定义列UI显示异常:咨询WIT中Control节点的作用
WIT Control Node in TFS: What It Does & Fixing Your Missing Field Issue
Hey there! Let's clear up your confusion about the WIT Control node first, then tackle why your [AHA Reference] field isn't showing up in the details popup's value area.
What the Control Node Actually Does
Contrary to what you might be thinking right now, the Control node is absolutely for UI display—it just has a specific, targeted role:
- It defines how a custom field should be rendered in the work item form (like the details popup you're looking at), including:
- Where it appears on the form (which section/group it lives in)
- What type of control to use (text box, dropdown, date picker, etc.)
- Label text and position
- Whether it's editable, read-only, or required
- It’s separate from work item list column configuration (which is why your field shows up there even without the Control node set up correctly).
- In some cases, it can also handle client-side logic, like showing/hiding the field based on other field values.
Why Your [AHA Reference] Field Isn’t Showing in the Details Popup
Since your field works in lists and is accessible via code, your FIELDS node configuration is spot-on. The problem is almost certainly where you placed the Control node in the XML:
- The details popup's "value area" maps to specific containers in the WIT form XML. If you added the Control node directly under the
FORMnode without nesting it inside aLayout→Group→Sectionstructure, TFS doesn’t know where to render it on the form. - Here’s an example of a correctly placed Control node for your field:
<FORM> <Layout> <!-- Look for existing groups like "Details" or "General" --> <Group Label="Details"> <Section> <!-- Add your Control node alongside other existing fields here --> <Control FieldName="Custom.AHAReference" Type="FieldControl" Label="AHA Reference" LabelPosition="Left" /> </Section> </Group> </Layout> </FORM>
- Double-check that the
FieldNamein your Control node exactly matches the one you defined in theFIELDSsection (custom fields usually use theCustom.prefix unless you specified a different namespace).
Quick Wrap-Up
To sum it up:
- The Control node is responsible for UI display in work item forms—your issue was just a placement mistake in the XML.
- Fixing the Control node’s position to live inside the correct form section will make it appear in the details popup's value area.
内容的提问来源于stack exchange,提问作者urlreader
相关产品推荐
相关产品推荐

