Hi -
I have been trying to use a custom javascript function to read the contents of the system's clipboard, but just saw that I cannot use asynchronous calls. Which means the typical "navigator.clipboard.read()" type commands don't work. 😞
Like many people, we use bluetooth enabled RFID readers to scan tags into the appropriate field. We currently use keyboard wedge applications to do this, but it's still the biggest complaint about impacts to the workflow. It can be daunting for some end users to set up a new scanner or troubleshoot issues when the arise, and it's also "annoying" that the wedge software can't be set to direct the keystrokes to a particular field. For some crews the latter issue isn't a big deal, while for others it seems to impact workflow and thus database integrity.
My most recent attempt was to use Tec-It's TWedge to send the data to the clipboard and then read it into Survey123, but came up against the asynchronous calls issue mentioned above. Any ideas? The TWedge program can send the hexadecimal sequence to the system clipboard, but I can't find an automated way of inputing the data into the correct field. If I could use a javascript function to read from the system clipboard, I could obviously set the field. The current workflow requires that the cursor be in the correct field, which obviously works but causes some issues with the sampling workflow - having to do more (like long press and paste) would only further interrupt the flow.
I know Esri is supposedly working on this... but if any javascript kings or queens have any suggestions, I'll take them. I have also been playing with TWedge to see if I can use that program's custom scripting capabilities to work around Survey123's limitations, but my lack of coding skills is limiting progress. Still willing to try suggestions, though!
Thanks!
Does a long press then Paste not work?
Sorry... I'll edit the post - the keyboard wedge app connects the RFID reader to Survey123. The goal being to have the tag be read and entered into the field automatically without any additional (manual) keystrokes. Right now (assuming everything is connected properly), the reader scans the tag and the keyboard wedge app transmits the hexadecimal sequence to the field the cursor is placed in. It really is "fine" - I'd just like to get it working a bit smoother.
(We had a commercial program that did all of this very smoothly, but got too expensive for us. Now no one can forget it haha)