CustomControl Render Control


hi,

i using customcontrol for implementing business rules validation in workitems customcontrol prevents displaying workitem form properly.

in 1 of custom control have validation wheather current user in "assigned to" filed.  if user not matched throw exception "you are not authorized view" shown message box user tfs workitem.  

is there other option show message box and same time hide workitem safely?

hi,

i'd rather suggest employed intended user interaction api display validation error. that, make control implement the iworkitemuseraction interface. here couple of threads explaining how implement interface , raise validation errors:

http://social.msdn.microsoft.com/forums/en-us/tfsworkitemtracking/thread/fd9ec233-cbaf-45a6-9780-ea5553eefc64
http://social.msdn.microsoft.com/forums/en-us/tfsworkitemtracking/thread/2a0041c3-c22a-4abd-a3ce-11fc981949c5/

also, here's blog post on how implement interaction between work item controls:
http://blogs.msdn.com/narend/archive/2006/10/19/communicating-between-custom-controls-building-parent-child-controls.aspx


please mark post answer if solve problem. thanks!


Archived Forums V  >  Team Foundation Server - Project Management & Work Item



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........