Within the Receipt Entry screen, I’d like to clear the screen if the pack slip was entered manually and already exists for the particular PO. And, allow normal processing if the packslip was retrieved with the search button.
I now have a messagebox popping up when I want it to, that warns the user that the packslip has already been entered. I need to go a step further and clear their packslip in addition to the warning dialog. I’ve tried everything I can think of oTrans.clear() after every traceable adapter method, programmatically clearing fields in the dataview, throwing an exception, other things I can’t remember. No matter what I try, I can’t seem to interrupt the flow or clear the screen after the process is complete.
Any thoughts on how to clear the screen after my dialog appears?
Thanks!