How to create Output Templates
Output Templates allow you to define what data and in what order should be collected and then sent to the output.
The Output Template that you set in the server settings will affect the output of the Keyboard emulation and also the CSV output (if it’s enabled).
You can edit the Output Template by following the following steps:
- Open Barcode to PC server on your computer
- Click the settings icon (up-right side)
- Drag & drop the components from the Available components field to the Output template field
Like this:
The app will acquire the data required to fill every component of Output template, and then send it to the server.
Example
For example, if you have two barcodes containing respectively the name, and the e-mail of a customer, and you want them to be typed into two separate fields, you’ll have to edit the Output template so that it looks like this:
This way the app will acquire two QR Codes and then send them to the server
Create multiple Output templates
If you need to use different Output components combinations based on what you’re scanning, you can create more Output templates and chose which one to use before start scanning.
To do that you have to enable the advanced settings of the server and then click “New output template” as shown in this video:
If instead your barcode/QR Code contains multiple information, and you need to split them across different fields of your programs check out this article: How to extrapolate data from QR Code
If several persons are taking an inventory and I want to identify every reading, what will the DEVICE_NAME component send? What do you recommend to do this?
By default, the DEVICE_NAME component will send the smartphone name, but you can set a custom value from the app settings.
You can use it for the Keyboard emulation output, or as a variable for CSV files names, as shown here: https://youtu.be/LYN6KV3LiYo?t=228
Hello
I wanted to ask how it is possible MAC shortcuts, e.g. ⌘N, to be implemented correctly in the output templates.
As a UseCase I would like to do the following. In the “Notes” application, I want to create a new note with each new barcode. To do this, I first have to call “⌘N” to create a new note. Unfortunately, that doesn’t work for me, or I’m doing something fundamentally wrong.
Thank you for your support
Best regards
Andi
Hello, I’ve got it working by using the CUSTOM KEY component set to
n
with the Command modifier enabled.In addition, I had to change the Type method option to Clipboard (enable the advanced options from the server settings).
How do I get a barcode to input in all caps?
You can do that by using the JAVASCRIPT FUNCTION component.
I’ve created an output template that does that, you can download it here: https://barcodetopc.com/examples/To%20Uppercase.btpt
To import it just double-click.
Ich benötige den Befehl “F4 Taste +Barcode + Enter” wie kann ich die F4 Taste einfügen?
You can use the CUSTOM_KEY component, and set the
f4
as key identifier, like this:I need to scan the QRcode and I need to know what time this code has been scanned, please help
You can use the DATE_TIME component, and then click on it and change the output to the time only
Hi, I need to insert a possibility of two variables in the text, how can I do that?
You can use the SELECT_OPTION component to show a list of options where only one can be selected
after barcode scan I need to select in the select_option “yes or no”, and if “no” scan second barcode. How is it possible?
Use
yes,no
as Options list for the SELECT_OPTION component, and then putselect_option == "no"
as condition for the IF component, like this: