Hi everyone,
I have an Oracle Forms application with a text item used exclusively for barcode scanning.
My requirement is:
- The cursor should be placed in the text item.
- Users should be able to scan a barcode using a barcode scanner.
- Manual keyboard typing should not be allowed.
- Copy/paste should also be prevented.
I understand that most barcode scanners work in keyboard wedge mode and send keystrokes just like a keyboard, so Oracle Forms cannot easily distinguish between scanned input and manually typed input.
As a workaround, I am considering validating the barcode based on its expected length. However, I would like to validate the input while the user is entering characters (i.e., as each character is received), rather than waiting until the item loses focus.
My questions are:
- Is there an item-level trigger in Oracle Forms that fires after each character entered into a text item?
- If not, what is the recommended approach to prevent or detect manual typing while still allowing barcode scanner input?
- Has anyone implemented a similar barcode-only input field in Oracle Forms? If so, what solution did you use?
Any suggestions or best practices would be greatly appreciated.
Thank you!