|Applying Filter to View - Timing question [message #499493]
||Mon, 23 November 2009 01:33
| J. Michael Dean, M.D.
Registered: July 2009
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.
Powered by FUDForum
. Page generated in 0.10767 seconds