Additional functionality to "Duplicate" control

Topics: Developer Forum
Feb 12, 2007 at 12:16 PM
Edited Feb 12, 2007 at 12:28 PM
Hi again!

The duplicate control that Naren posted on his blog is a promising way to expose a link to another (exactly one) work item in a nice way. However I would like to have the other work item's title displayed as well.
I guess this could be done in two ways.
1) store the title of the other work item (actually a mother of this work item)
2) read the title of the other work item every time you open this one (performance cost)

However I have some difficulty in getting the title. I had hoped to be able to read it form the WitPicker, but that does not seem to work.

Any ideas or thoughts?

Feb 26, 2007 at 8:40 PM
Hi Tomas, you get the reference to WorkItem in your custom control, and you can get the field that stores the duplicate item. I not sure what specific problems you face using the OM to access that workitem.
Feb 27, 2007 at 11:08 AM
Actually I could read the title of the other work item every time I open this workitem (no 2) to be sure the field shows correct information even if it was changed.
Otherwise I could read the title once and store it in a field. In that case it would be nice to get it via the WorkItemPicker...