Friday, September 10, 2010
Google Custom Search

Go to...

Recent Forum Posts

Our Community

Membership Membership:
Latest New User Latest: bunk_C1
New Today New Today: 16
New Yesterday New Yesterday: 20
User Count Overall: 10768

People Online People Online:
Visitors Visitors: 4
Members Members: 1
Total Total: 5

Online Now Online Now:
01: osmosis

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
New Member
New Member
Posts:5

--
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:1454

--
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
resnickj
Senior Member
Senior Member
Posts:891

--
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.
mtl
New Member
New Member
Posts:5

--
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 2010 ClearCanvas Inc.