Hi everyone, does anyone know how I can setup a ba...
# suitescript
k
Hi everyone, does anyone know how I can setup a barcode scanner to be used with a custom suitelet ?
p
Barcode scanners are just keyboards in disguise (which surprises many people)
But your question is way too broad
k
I am trying to fulfil a sales order through a custom suitelet. I load all the information about the Sales order, and I want to give the user ability to scan the item.
b
low tech solution is to scan the contents into a field, and then use client script to fill in what you want elsewhere
k
Thanks, I can try that way. How can I get access to the custom form currently loaded in the client script ?
b
not quite sure what you are asking, but you access the record using N/currentRecord
or more commonly, using a client script set by the suitelet
k
I already setup a client script for my suitelet. What I want to do is when I scan a barcode into a field like you suggested, I need to verify if the scanned item is listed in the Items sublist on my form.
b
you will probably end up doing a search to get the item's internal id/name, and then get the Sublist Field, then check its select options
k
got it, that works. Thanks for the help.