index > Team Foundation Server - Work Item Tracking > Creating Custom Control

Creating Custom Control


Hi,

I am very keen to see the working of custom control. Thanks to Naren for a detailed explanation on how the custom control works. But I am facing issues here. Hope some body helps me here.. I have followed the following steps

1. Unzipped the sample in http://blogs.msdn.com/narend/archive/2006/10/02/How-to-use-Custom-Controls-in-Work-Item-Form.aspx to my working folder

2. Built the sample.

3. Copied the dll and the wicc file to C:\Documents and Settings\All Users\Application Data\Microsoft\Team Foundation\Work Item Tracking\Custom Controls and also to C:\Documents and Settings\prash\Local Settings\Application Data\Microsoft\Team Foundation\Work Item Tracking\Custom Controls.

4. Now I wit imported the Bug-CustomControl.xml (tried thisfrom my working folder and also from the above mentioned folders after copying the wit xml file.

Now during import it is throwing the following error on the line where the custom control is being created:

"Xml validation error at row 392, column 26: The 'Type' attribute is invalid - The value 'WorkItemIdReference' is invalid according to its datatype 'http://schemas.microsoft.com/VisualStudio/2005/workitemtracking/typedef:ValidControlsType' - The Enumeration constraint failed."

Not sure if I have missed something in the process. This is what precisely what it is mentioned in the read me txt also.

Can somebody please help.

Thanks and Regards

Prash

PrashG

Hi,

Have you already installed the SP1 beta?

mathieu.szablowski

Yes, very much

Regards

Prash

PrashG
This error means that the Microsoft.TeamFoundation.WorkItemTracking.Client.dll file your machine is still not updated (it is still RTM version). Can you check the version of the file? This should have got updated by SP1 beta setup. Can you try uninstalling and reinstalling SP1 beta (and a restart of box at the end just in case) and see if that dll gets updated in GAC and in PrivateAssemblies folder in VS IDE path?


http://blogs.msdn.com/narend
Naren Datha - MSFT

Hi Naren,

Thanks for your solution. Finally it worked. Looks great. I am interested in building Popup windows as custom control. They are coming fine, But I am facing some issues in data communication between them. In the sample I have a combo in the popup and when the value of the combo changes I need to populate that value in the main window.. Is this something which is possible..?

I can probably look at the textbox and the popup as part of the same control... Not sure.. Please let me know your opinion.

Regards

Prash

PrashG

You had wrong dll installed, so how did you get it working finally? What you did to have correct dll? Some other users are having this problem and would like to know how you solved it.

I am not able to understand your question on data communication between popup and main window. It seems like a winforms question rather than custom controls question to me.




http://blogs.msdn.com/narend
Naren Datha - MSFT

Hi,

The new dlls were not installed. There were some issues in the installation of the SP1. I started of onceagain on a clean machine and this time everything went fine. Custom controls started working without any issues...

Regards

Prash

PrashG
Did the samples work fine as they are, or did they require any changes?


http://blogs.msdn.com/narend
Naren Datha - MSFT
reply 8

You can use google to search for other answers

 

More Articles

How can 2 dev teams work on the same projects.
Unassociate Project Server project from TFS project
Re-Pointing Microsoft Project plan at TFS
Start Date is read-only from MS Project
TFS Work Item WebPart Authentication Failure - Work Item Metadata...
Work Item Query Question - State Field Value dropdown list
Nested conditions in WIT definition
Error - Object reference not set to an instance of an object.
Way to change the order of "found in build" field on WI
Field-name used in error message
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

Copied work items do not show up in quer…
change column width for work item title …
TF26027 error after work item import
Get all changesets number that linked to…
How to respond to work item control events
MS project problem
Creating Custom Control
tf86001 Team foundation was unable to lo…
End Date for Iterations
WorkItemTracking error : The INSERT stat…
Inbox like query ?
Getting WorkItems by Project Name from T…
limit control type links control to spec…
Build a WIQL query on iteration paths
Credentials of the SubscribeEvent WebSer…

Hot Articles

How To Temporarily Disable Field Validat…
Work item Action list
Dailywise Resouce Allocation
Open Work Item attachment problem
link requirements and tasks
Removing a work item
how to increase attachment upload limits…
create WI custom field dependencies
WITIMPORT: Cannot complete the operation…
How do I delte work items?
Customize Query Variables
How to get the list of valid users in a …
Displaying a bug description in Excel di…
TF80071 connecting MPP to Team project
Query using Contains Operator

Recommend Articles

Work Item Access control based on Work I…
Work Item to Work Item associations
Accessing work item history from API
Excel Plug-in for Office 12
Assignment and delegation: Is teher any …
New work item ticker tool?
Office table Pivot
Custom Work Item Types and Sort Order
"Assigned To" field
Clarification Reg. Chaild Workitem
Work Item Queries limitations
Using Microsoft Project with TFS Work It…
TF26027 error after work item import
Scheduling with VSTS and MS Project
Relation between Work Items -> Change…