What should do if I need to get user input while an item is being processed?

Started by ForumAdmin, March 26, 2008, 10:39:04 AM

Previous topic - Next topic

ForumAdmin

What should do if I need to get user input while an item is being processed?

Bryan Clark

It is important to return from the TransportSetItemOutput event quickly.  For portability reasons it is a bad idea to prompt an operator for input during this event.  If you need to prompt the operator for input, register for Ranger's ItemSuspended event then call SuspendItem() in your SetItemOutput event and return from the SetOutputEvent.  When the check scanner is in a state where the item can be stopped, Ranger will fire the ItemSuspended event.  You can then prompt the user for input and set any values for the item that you would normally set in the SetItemOutput event, such as the target pocket number.  When you are ready to resume processing call Ranger's ContinueItem() call.



Ranger® - The universal check scanner interface
Copyright © 2009 Silver Bullet Technology
www.sbullet.com