You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/development/barcodes.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
3
3
Since UI5 version 1.102, the `sap.ndc.BarcodeScannerButton` control is part of the UI5 library, making barcode scanning simple and straightforward.
4
4
5
+
#### Scanner Button
6
+
5
7
The barcode scanner control can be used like any other UI5 control with abap2UI5. Below is a snippet demonstrating the basic functionality. You can add your custom barcode handling after the scanning event is triggered:
6
8
7
9
```abap
@@ -35,4 +37,7 @@ Check out `z2ui5_cl_demo_app_124` to see barcode scanning in action. If you also
35
37
36
38
::: tip **UI5 Versions**
37
39
Please note that this feature is only available when bootstrapping with the UI5 version and does not work with OpenUI5.
38
-
:::
40
+
:::
41
+
42
+
#### Device
43
+
Most scanner devices have an integrated scanning function. In such cases, you can simply create an input field and ensure the focus is correctly set. The scanned data will populate the input field as if it were typed via a keyboard.
0 commit comments