on 2021 Apr 28 7:37 PM
Hello MDK Experts,
Good Day!
I need some technical advice from your end.I have successfully used the scanning operation in SAP MDK.I have added a button and onPress of that event is called where i execute the Barcode Action and the result(output) is returned and i am able to perform further CRUD operation as per requirement.
Now customer uses devices where there are separate Scanner button (on the device) where it ejects Laser light and scanning is done.Is there any way where i can call any method/rules on click on the external scanner button .Like in Hybrid application(Cordova+Kapsel) there was a option - addEventListener some method would be called onResume, pause,device ready,voulume up etc.
Is there any such similar functionality available here in SAP MDK where after scanning from the device in-built external scan button feature it would store somewhere in SAP MDK Client data or the response would be displayed in Form page.
Any code reference or suggestion would be highly helpful.
Thanks,
Arka Basu
Arku,
How you integrate a hardware scanner into your MDK application is determined by what the hardware exposes. Some scanners are configured as a keyboard wedge where as long as the cursor is in an input field a hardware button scan will "paste" the result into the current field. Others can be setup to emit a broadcast event that you can listen for. Most all have a specific scanning SDK you can use in an extension control to configure and initialize the scanner so that the event will trigger within your MDK application.
Each scanner manufacturer has their own API and feature set so you will need to investigate the specifics of the device you are planning to use to determine the best approach for this integration.
--Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Arka, this blog may help:
https://blogs.sap.com/2018/12/12/customize-sap-asset-manager-for-ios-with-an-mdk-extension-control/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
10 | |
10 | |
10 | |
10 | |
8 | |
8 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.