Silver Bullet - Support Forum

Ranger => General Ranger FAQs => Topic started by: ForumAdmin on March 26, 2008, 10:39:04 AM

Title: What should do if I need to get user input while an item is being processed?
Post by: ForumAdmin on March 26, 2008, 10:39:04 AM
What should do if I need to get user input while an item is being processed?
Title: Re: What should do if I need to get user input while an item is being processed?
Post by: Bryan Clark on March 31, 2008, 05:22:32 PM
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