How To: Add Custom Controls Into Work Item

26/11/2008

How To: Add Custom Controls Into Work Item

I had question regarding the post about How To: Write Team System Custom Control.

Question: How I can add the custom control anywhere in the Work Item?

First download PowerTool 2008 so will be able to work with Process Template Editor.

Copy you Custom Control output into – (For Visual Studio 2008)
C:\Documents and Settings\All Users\Application Data\Microsoft\Team Foundation\Work Item Tracking\Custom Controls\9.0

Copy you Custom Control output into – (For Visual Studio 2005)
C:\Documents and Settings\All Users\Application Data\Microsoft\Team Foundation\Work Item Tracking\Custom Controls\

After installing PowerTool 2008 open the process editor menu and select “Open WIT from Server”

1

Select the desire Work Item.

2

In the layout tab right click on the place you want to add the Custom Control and click “New Control”.

3

Select the new control and in “Type” select your control.

If this custom control doesn’t use Field you can leave this FieldName empty.

4

Add comment
facebook linkedin twitter email

Leave a Reply

13 comments

  1. AMohamed25/11/2008 ב 08:14

    Thank you for your reply.
    I have PowerTools 2008 installed and I copy Custom Control output (this two files “Header.wicc” and “SR.CustomerControls.dll” )to < <>>

    but i still can’t find your custom controls “Header” in the type list in my work item.

    Is there any extra steps to be done ? should I create a new project from scratch, or should i register something first in the GAC or other places?

    Thank you,
    AMohamed

  2. Shai Raiten26/11/2008 ב 13:02

    Hi,

    You don’t need to GAC anything.

    You use Team System 2005 or 2008

  3. neongreen29/11/2008 ב 12:24

    First I’d like to say that I love your post..and now I have a question for..hope you can help out…you see I would like to try to go through the process you wrote about in your post…but before I can do that I would offcourse need to install PowerTools….now my question would be..can I install PowerTools 2008 on

  4. Eyal07/12/2008 ב 10:21

    Great post! saved me a lot of time :-)

    I’ve installed your Web Browser custom control and set it to appear as new field on a Task work item.

    However when I open two new tasks (one after the other), I get a red textbox instead of the control saying “Length cannot be less than zero. Parameter name: length”.

    The same error happened with different custom control.

    Is there a problem opening two work items at the same time when they have custom controls on them??

  5. AMohamed25/12/2008 ב 19:55

    Please did any one create Custom Controls for TFS Work Item which work successfully in windows server 2003.

    Note: I did a custom controls in Windows ( Vista & XP ) and it’s run successfully but not work with me in Windows server 2003.

    Thanks.

  6. AMohamed26/12/2008 ב 13:29

    Hello,

    I just want to say that I solved the problem of Custom Controls for TFS Work Item which work in windows server 2003 by Installing the update version of the power tool( TFS October Power Tools) in windows server 2003.

    Thanks.

  7. shair30/12/2008 ב 08:52

    I”m Glad to hear it!

  8. Phani04/02/2009 ב 11:09

    Hi Shai,

    This is Phani again… I have developed the reqd custom control… but the unfortunate thing is that I could not find the folder to place by dll and the wicc file. Can you pls suggest whats to be done next ?

    Regards,
    Phani

  9. Shai Raiten04/02/2009 ב 12:07

    Hey Phani,
    As I wrote above you need to put your dll and wicc file in this location:
    If you are using Windows Vista (or above) instead of Documents and Settings goto Users folder.

    (For Visual Studio 2008)
    C:\Documents and Settings\All Users\Application Data\Microsoft\Team Foundation\Work Item Tracking\Custom Controls\9.0

    (For Visual Studio 2005)
    C:\Documents and Settings\All Users\Application Data\Microsoft\Team Foundation\Work Item Tracking\Custom Controls\

  10. Phani12/03/2009 ב 11:31

    Shai,

    Even after placing the dlls and the wicc files in the above mentioned directory, I am unable to find my custom control in VS2005. It works fine for VS2008. I have SP1 installed as well. For 2005, I am using 8.0 and for 2008, am using 9.0 version dlls which are required for the custom control. I even tried copying the dlls from 9.0 to Custom Controls folder in the above mentioned path for 2005… even then, the custom control is not visible in the drop down in “wit”.

    -Phani

  11. Chris20/05/2009 ב 06:37

    Thanks Shai, this is very helpful

    I got it to work fine on XP64 SP2. But I had to explicitly create the path first as it didn’t exist.

    C:\Documents and Settings\All Users\Application Data\Microsoft\Team Foundation\Work Item Tracking\Custom Controls\9.0

    Then close and reopen Visual Studio to see the changes.

  12. Sekhar20/04/2010 ב 13:10

    HI!

    I completed all the steps posted here.
    I got the Custom Control which i created.
    But when i click the Preview Layout, An alert is displaying that “Form must contain atleast one custom control”

    Sekhar

  13. Julio Caldas17/08/2010 ב 18:09

    Thanks for your help. My VSTS 2010 has my way of work now!.