Team System Developer Center > Visual Studio Team System Forums > Team Foundation Server - Work Item Tracking > Dependent HtmlFieldControl tab in work item does not get highlighted when required
Ask a questionAsk a question
 

QuestionDependent HtmlFieldControl tab in work item does not get highlighted when required

  • Thursday, October 29, 2009 7:38 PMNoodlesCoder Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I am creating a custom work item.  I've created two tabs with a HtmlFieldControl on each tab.  I've made Tab 1 be required on the transition from="" to="active" and there is a triange and exclamation point in it's tab label to indicate that it is a required field.

    Tab 2 I've made required IF another field (which has two possible values) is equal to value A.  When value A is selected for the field though, the tab label does not display the triangle and exclamation point.

    If I create Tab 2 to have a fieldControl element type instead of a htmfieldcontrol element type with the exact same dependency, I get the triangle and exclamation point on the tab label with the field is set to "A".

    Can anyone explain why I can't get the icon notification when the tab uses an htmlfieldcontrol?
    •  

All Replies

  • Monday, November 02, 2009 8:31 AMRuiz YiModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,

    Do you mean Custom Work Item Control or just work item type? and " made Tab 1 be required " means make the control/ field in the tab required?

    Best Regards,
    Ruiz


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Sincerely, Ruiz Yi
  • Tuesday, November 03, 2009 2:49 PMNoodlesCoder Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hi Ruiz,

    I am using out of the box work item control types.

    So I've been editing my "Bug" work item type to include another tab that includes an "htmlfieldcontrol" control type.

    By default "Bug" type already has a tab called description with an htmlfieldcontrol control type, and I've created another tab called workaround with an htmlfieldcontrol control type.

    I am trying to make both htmlfieldcontrol control types (on the two tabs) required fields.
    Description htmlfieldcontrol field to be required on transition from "" to "Active"
    Workaround htmlfieldcontrol field to be required when "workaround status" field = "Exists"

    At the moment, when I open the work item I have the icon notification on the description tab (which is expected).  However when I change the value in "workaround status"="Exists" I do not get an icon notification on the workaround tab (which is what I expected).

    If I replace the htmlfieldcontrol control types to be fieldcontrol control types instead I get the both my expected notifications.  The one initially when I open the work item and the second when I change "workaround status"=Exists.

    Can you explain why I might not see the second notification icon when both control types are set to "htmlfieldcontrol" but I do see the second one when they are set to "fieldcontrol"?

  • Wednesday, November 04, 2009 7:51 AMRuiz YiModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    HI NoodlesCoder,

    When WorkItem UI field changed, Tab page will calculate all controls that belong to it whether the control need user action. The calculation need the control implement IWorkItemUserAction. FieldControl implement it but HtmlFieldControl not.

     

    Best Regards.

     

    Ruiz Yi

     


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Sincerely, Ruiz Yi
  • Wednesday, November 04, 2009 2:16 PMNoodlesCoder Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hi Ruiz,

    So you're saying that the control element out of the box was not implemented for htmlfield control?

    If that's the case then when creating a new work item how come the htmlfieldcontrol will seet the first icon notification?  I would expect that it wouldn't neither the first or the second notification, not just the second one.

  • Wednesday, November 04, 2009 8:20 PMGregg Boer - TFS Product TeamMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    A question. Does the notification icon appear on the tab when you click on it? That is, if the tab is not originally the "in-focus" tab, and when you click on it to make it "in-focus", does the icon appear then?
    Team Foundation Server
  • Wednesday, November 04, 2009 9:41 PMNoodlesCoder Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    The second notification icon never appears (in-focus or not). 

    The first notification icon appears as mentioned when the work item is first opened in the transition from="" to="Active".  I have moved the Description tab to not be the first tab (Details is now the first tab, followed by Description) and the notification icon still appears (as expected) both when not in-focus and when in-focus.
  • Thursday, November 05, 2009 1:52 AMGregg Boer - TFS Product TeamMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    By do you mean the little exclamation mark inside a triangle icon?
    And by first/second, do you mean as it would appear on the first and second tabs?
    Team Foundation Server
  • Thursday, November 05, 2009 1:54 PMNoodlesCoder Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Gregg,

    Yes, I'm referring to the little exclamation mark and triangle icon on the tab label.

    The layout of my work item is as such:
    Tab 1 = Details
    Tab 2 = Description (with htmlfieldcontrol control type)
    Tab 3 = Workaround (with htmlfieldcontrol control type)


    So I've been editing my "Bug" work item type to include another tab that includes an "htmlfieldcontrol" control type.

    By default "Bug" type already has a tab called description with an htmlfieldcontrol control type, and I've created another tab called workaround with an htmlfieldcontrol control type.

    I am trying to make both htmlfieldcontrol control types (on the two tabs) required fields.
    Description htmlfieldcontrol field to be required on transition from "" to "Active"
    Workaround htmlfieldcontrol field to be required when "workaround status" field = "Exists"

    First and second refer to when I should see the notification icon on the tab labels.
    At the moment, when I open the work item I have the icon notification on the description tab (which is expected).  However when I change the value in "workaround status"="Exists" I do not get an icon notification on the workaround tab (which is what I expected).

    If I replace the htmlfieldcontrol control types to be fieldcontrol control types instead I get the both my expected notifications.  The one initially when I open the work item and the second when I change "workaround status"=Exists.

    Can you explain why I might not see the second notification icon when both control types are set to "htmlfieldcontrol" but I do see the second one when they are set to "fieldcontrol"?

  • Tuesday, November 10, 2009 6:46 PMGregg Boer - TFS Product TeamMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I've asked a developer to take a look at your problem.
    Team Foundation Server
  • Tuesday, November 10, 2009 7:06 PMNoodlesCoder Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thank you.
  • Wednesday, November 11, 2009 4:31 AMHayder CaseyMSFTUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thanks for reporting this issue. I have logged a bug for it.

    unfortunatly I cannot think of a workaround. I believe the root cause is html control think its not empty because it has an empty paragraph.

    -Hayder