Saturday, February 04, 2012
Google Custom Search

ClearCanvas Highlights

Download our  Software
Watch some Videos
Get the Source
Check out our Licensing
Join our  Forums
Some Research: OICR IPP-Trials

Our Community

Membership Membership:
Latest New User Latest: b3lad
New Today New Today: 6
New Yesterday New Yesterday: 26
User Count Overall: 20479

People Online People Online:
Visitors Visitors: 40
Members Members: 0
Total Total: 40

Online Now Online Now:

ClearCanvas Community Forums

Selection information from a Table
Last Post 2010-07-06 06:06 PM by mtl. 3 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
mtl
Basic Member
Basic Member
Posts:21

--
2010-06-21 11:55 AM  

I'm working on a MR image post-processing plug-in for ClearCanvas Workstation.  The first step of the workflow will be for the user to select one or more series from a study to be processed.  Extending the SeriesDetailsComponent located in ClearCanvas.ImageViewer.Explorer.Dicom.SeriesDetails seemed like the way to go, so I've been reading through that code and trying to get my head around it.  It does appear that selection of multiple series should be possible because the UI behaves as one would expect when you click a series and then Ctrl+click another series.  However, it isn't really clear to me how I can obtain the selection information from the Table.  The SetColumnClickLinkDelegate method in the TableColumn class seemed promising until I searched the code for an example of some code making use of it and found that it isn't called anywhere outside of the TableColumn class.

I'm now digging through the code for the StudyBrowserComponent since it clearly must have some means of getting selection information from the table in order to bring up the correct study in the viewer when the user clicks a study.  However, I haven't yet figured out where this is accomplished in the StudyBrowserComponent code.

If someone could point me in the right direction, that would be very helpful.

Thanks,

-Matt

Tags: table selection
stewart
Senior Member
Senior Member
Posts:2032

--
2010-06-29 10:19 PM  
Hi Matt, actually, the Table class itself does not have any information about selected items.

if you look at any component that uses the Table class, you'll see that each one has a SetSelection (or some similarly named method) that is called from the "View". Each component then holds a reference to the ISelection object passed in, which contains one or more of the items from the table.

Hope this helps,
Stewart
Real-time support available to Clinical Edition and Team Edition customers
resnickj
Senior Member
Senior Member
Posts:968

--
2010-06-30 10:07 PM  
You can also just use the data-binding mechansim: bind the TableView.Selection property to a property on your application component, of type ISelection.
Real-time support available to Clinical Edition and Team Edition customers
mtl
Basic Member
Basic Member
Posts:21

--
2010-07-06 06:06 PM  
I've got it working now. Thanks, guys!
You are not authorized to post a reply.

Active Forums 4.1
Copyright 2011 ClearCanvas Inc.