Keyboard wedge barcode scan event in a custom view. #136
-
Hello, Using the Retail SDK we have implemented a barcode scan action in a custom view. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello, This issue is solved with the following code adjustment : Cheers. |
Beta Was this translation helpful? Give feedback.
Hello,
This issue is solved with the following code adjustment :
The Microsoft sample code for “SampleExtensionView.ts” has this line in the class declaration :
public readonly implementsIBarcodeScannerEndpoint: true;
It appears that this is no longer taken in consideration while instantiating the class in Commerce SDK.
We managed to get it working by adding this line to the constructor of the of the class, after de super call :
this.implementsIBarcodeScannerEndpoint = true;
After this modification the “onBarcodeScanned” method gats called correctly while using the barcode scanner.
It would be a good idea to correct this in the Microsoft samples, not to waste time to other technicians.
Ch…