Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Applying Filter to View - Timing question
Applying Filter to View - Timing question [message #499493] Mon, 23 November 2009 01:33 Go to next message
J. Michael Dean, M.D. is currently offline J. Michael Dean, M.D.Friend
Messages: 218
Registered: July 2009
Senior Member
I have an application that begins with the need for a patient to be selected
by the user, and then a decision table is opened and displays the clinical
decisions that have been made for that patient. When the application starts
up, there is no patient selected, but the decision table view is opened (and
empty) on the perspective.

When I select a patient, the decision table view opens with all records,
including valid records and invalid records. I am using a
CheckboxTableViewer and by checking the box, the user indicates that the
record is invalid. This is useful because clinical users may make a
mistaken entry - I cannot allow the actual deletion of the record, but I can
allow the record to be marked invalid.

The desired behavior is that the clinical user of my application only sees
valid records. If they want to look at invalid records, they can click on
the toolbar command that basically toggles the filter for invalid records.

My question is how to apply a filter at the outset, but recognizing that
initially there is no actual patient selected, so the decision table is
supposed to be empty. If I add the filter for invalid patients to the view,
then invalid decisions never show up.

Is there an obvious different entry point for applying the filter? The
handler is simple, adding the filter to the view, and it works great. But I
want to instantiate a viewer that has a filter in place. This seems (after
about 8 hours) to be difficult.

Thanks for any assistance.

- Mike
Re: Applying Filter to View - Timing question [message #499496 is a reply to message #499493] Mon, 23 November 2009 02:08 Go to previous messageGo to next message
Francis Upton IV is currently offline Francis Upton IVFriend
Messages: 472
Registered: July 2009
Location: Oakland, CA
Senior Member
I'm having a hard time understanding your question.

Can you explain exactly what the problem is when you simply add a filter to the view, and why having a filter applied when the view is created will solve this problem?


Re: Applying Filter to View - Timing question [message #500104 is a reply to message #499496] Wed, 25 November 2009 01:11 Go to previous message
J. Michael Dean, M.D. is currently offline J. Michael Dean, M.D.Friend
Messages: 218
Registered: July 2009
Senior Member
Turned out I had inverted (i.e. Wrong) boolean logic. Adding the filter to
the view works perfectly. Sometimes you need a few days away from the code!
Thanks.


On 11/22/09 7:08 PM, in article hecqrg$2nr$1@build.eclipse.org, "Francis
Upton" <francisu@ieee.org> wrote:

> I'm having a hard time understanding your question.
>
> Can you explain exactly what the problem is when you simply add a filter to
> the view, and why having a filter applied when the view is created will solve
> this problem?
Previous Topic:Accessing Workbench StatusBar Contribution
Next Topic:Referencing resources from other plugins in plugin.xml
Goto Forum:
  


Current Time: Fri Apr 19 19:59:19 GMT 2024

Powered by FUDForum. Page generated in 0.02771 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top