No video

Interfacing with a barcode scanner in Business Central AL

  Рет қаралды 8,366

Erik Hougaard

Erik Hougaard

4 жыл бұрын

Find more information at my blog www.hougaard.com or follow me on / ehougaard
Source code can be found here: github.com/hou...

Пікірлер: 45
@umarnaeem6128
@umarnaeem6128 3 жыл бұрын
Man, I actually had to stop the video in mid to give you a like and this comment. This video is great! Thank you - Subscribed
@Hougaard
@Hougaard 3 жыл бұрын
Check out the POS video, kinda a followup!
@prebenborg
@prebenborg 4 жыл бұрын
Very interesting - I only wonder how Copy/Paste will behave? Just a scanner hint - you can often configure that barcode scanner it self and get it to send or attach prefix and suffixes even based on different barcode types so you only "fetch" the right type of barcodes (Code39/UPC-A/EAN-13)
@Hougaard
@Hougaard 4 жыл бұрын
This $15 scanner do not support a prefix, only postfix. You get what you pay for :)
4 жыл бұрын
Holly Molly....... Awesome. I think that the idea of controlling the time between keystrokes is simply Great. Ta for sharing your knowledge
@vossert
@vossert Жыл бұрын
Hi Erik, Thank you very much for this video. I did implement is about a year ago but recently applied a modification to the code I think is worth mentioning here. I have multiple Pages using this Scanner usercontrol. Let's say Page A, B and C. On Page A I have a button/action which runs a lookup page (B) which in turn shows page C depending on the lookup result. When all 3 pages are shown (C on top) and I use the Scanner the usercontrol action on all 3 pages fire. Not at once, only when the page gains focus again. I was able to prevent this by passing 'true' for the optional skipIfBusy argument on InvokeExtensibilityMethod. This is what solved it for me: Microsoft.Dynamics.NAV.InvokeExtensibilityMethod( "Scanned", [buffer], true )
@antoniocheca3787
@antoniocheca3787 Жыл бұрын
Hi Erik, great post! I have placed a field in transfer order header and I read serial nos from that field and then create a transfer line with the related item and tracking info. The problem I have is that the scanner sends an CRLF after reading the bar code which places the cursor in the next field of the transfer header, so the user, if needs to scan other serial no, needs to place the cursor back to the scan field. I cannot control this behabiour with standard AL (or I beleive so), so my question is: would your control addin (user control now) fix this behaviour and could be able to "return" the cursor to the scanner field? Thank you
@Hougaard
@Hougaard Жыл бұрын
If you want to use the scanner as a keyboard, then you need to configure the scanner not to send anything else...
@jackpeterson480
@jackpeterson480 4 жыл бұрын
Can you go through more of the basics on AL? Starting my learning curve and loved your intro video!
@Hougaard
@Hougaard 4 жыл бұрын
I've got more beginner stuff planned, stay tuned!
@divesh6287
@divesh6287 3 жыл бұрын
Hey Erik, Can you please create one video on topic ?
@wlfrankiej
@wlfrankiej Жыл бұрын
Hi Erik, I somehow cant get it to work. The scannerinterface keeps complaining about the JS files that cannot be found. Have you got an idea how to solve that? The files are located in the same directory, name is correct...
@Hougaard
@Hougaard Жыл бұрын
Then clearly the name is not correct :)
@ysr1582
@ysr1582 2 жыл бұрын
How to print QR code in Report in Business Central Cloud version.
@george4804
@george4804 4 жыл бұрын
Is not a must using javascript control addin. You can do it simple, make page not editable except a single textbox where you scan. Set scanner to make new line after scan and cach onvalidate.
@Hougaard
@Hougaard 4 жыл бұрын
That would not solve barcodes with FNC1 characters and there is still the options of not having the cursor in that single field, even with just one field. On top of that, BC will move cursor focus, check the next video.. Out soon :)
@george4804
@george4804 4 жыл бұрын
@@Hougaard indeed will not work with FNC barcodes types. But any regular will work if you have only one control editable. Anyway adding javascript addin in BC is much easier than before.
@Hougaard
@Hougaard 4 жыл бұрын
One of the "design goals" as stated in the video, was to be able to handle FNC1 (because they come over as Ctrl-+ (zoom)) and I wanted to show how to solve that. (but my $15 scanner did not support FNC1, so I used the linefeed to simulate that situation where you need to suppress key presses).
@yasmeensultana2802
@yasmeensultana2802 3 жыл бұрын
Hi Erik, thanks for the great video. I have used your scanner concept (showed in this video) and I created an extension to scan a barcode and create new sale order line on sales order page. But problem is after creating new sale order line, totals fields(total Amt. inc.VAT, Total VAT etc) on sales order subform are not getting updated automaticaly. These field only get updated on refresh/onreload of sales order page. Do you have any idea how to update these field automatically after each scan and creation of sales order line.?
@Hougaard
@Hougaard 3 жыл бұрын
Call release and reopen.
@tonywillems4234
@tonywillems4234 Жыл бұрын
I tried to use this app on BC 365 Cloud V22. I get a lot of errors in the console and the javascript doesn't run
@Hougaard
@Hougaard Жыл бұрын
What kind of errors?
@ian-scho
@ian-scho 4 ай бұрын
@@Hougaard Using the 'window.parent.addEventListener(...)' command (modifying the DOM) in Javascript has possibly been deprecated in Dynamics products.
@kish100100
@kish100100 3 жыл бұрын
Hi Erik, Can we scan barcode using mobile camera and same can we store in Business central table?
@Hougaard
@Hougaard 3 жыл бұрын
Only by using a barcode keyboard, like this: play.google.com/store/apps/details?id=com.nikosoft.nikokeyboard&hl=en_CA&gl=US
@lucianstinga1587
@lucianstinga1587 3 жыл бұрын
Hi Erik, can you please make a video on how to generate and print a QR Code on a BC AL report ? Thanks
@Hougaard
@Hougaard 3 жыл бұрын
It's not that easy, there's a lot of work involved with that.
@hexaforce
@hexaforce Жыл бұрын
I think it is better to first program the scanner to just send the barcode without prefix and suffix. Then the scanner will be basically a keyboard.
@Hougaard
@Hougaard Жыл бұрын
.... Yes, but that was not the point of the hack :)
@rachitgoel2036
@rachitgoel2036 4 жыл бұрын
Hi Erik. Thanks for sharing your knowledge with us. Your content is really useful. This request is not in direct connection with this video, but could you please also shred some light on NAV/BC Sales Document approval directly from an email where approver can directly approve or reject a document from an email received from Approval workflow. Currently approver needs to login in BC to do the same. Thanks.
@Hougaard
@Hougaard 4 жыл бұрын
Not out of the box, but if you watch my video on URL hacks ( kzbin.info/www/bejne/nWGVaH1qaLKBisk ) you could create an URL that could trigger an approval.
@rachitgoel2036
@rachitgoel2036 4 жыл бұрын
@@Hougaard thanks Erik
@umarnaeem6128
@umarnaeem6128 3 жыл бұрын
Waiting for the follow-up video ^^
@Hougaard
@Hougaard 3 жыл бұрын
No wait kzbin.info/www/bejne/oJK4o3WQrtKSaK8
@umarnaeem6128
@umarnaeem6128 3 жыл бұрын
@@Hougaard thank you so much
@ara3n
@ara3n 3 жыл бұрын
why would add a sufix or prefix in a barcode scanner?
@Hougaard
@Hougaard 3 жыл бұрын
to identify when something is scanned and not just typed.
@ara3n
@ara3n 3 жыл бұрын
@@Hougaard but aren't you doing that with speed it takes to type?
@Hougaard
@Hougaard 3 жыл бұрын
@@ara3n the more the better, it all goes to reduce the chance of "guessing" worng.
@TheRealMrIncognito
@TheRealMrIncognito 4 жыл бұрын
Hi Erik, any idea how to open barcode/qr code scanner in mobile app?
@Hougaard
@Hougaard 4 жыл бұрын
By using the camera on the phone?
@george4804
@george4804 4 жыл бұрын
No code solution is to use a keyboard from appstore that have build in scanner. Or you can try implement zxing javascript as Erik demonstrated.
@TheRealMrIncognito
@TheRealMrIncognito 4 жыл бұрын
As long as can scan.. Or best if can detect apps for scan barcode from mobile phone
@xkhrachana140
@xkhrachana140 3 жыл бұрын
does it work with wireles barcode scanner?
@Hougaard
@Hougaard 3 жыл бұрын
If the wireless barcode scanner is a "keyboard".
Adding a javascript Color Picker in AL to Business Central
23:02
Erik Hougaard
Рет қаралды 3,2 М.
FlowFields, the superpower inside Business Central.
25:45
Erik Hougaard
Рет қаралды 9 М.
Fast and Furious: New Zealand 🚗
00:29
How Ridiculous
Рет қаралды 48 МЛН
لااا! هذه البرتقالة مزعجة جدًا #قصير
00:15
One More Arabic
Рет қаралды 50 МЛН
World’s Largest Jello Pool
01:00
Mark Rober
Рет қаралды 125 МЛН
UI Hacks with Javascript in Business Central
24:01
Erik Hougaard
Рет қаралды 7 М.
What's new: Business Central Mobile App and Barcode Scanning
27:39
Microsoft Dynamics 365 Business Central
Рет қаралды 1,7 М.
Hacking the new Page Scripting Tool in AL and Business Central
59:04
Erik Hougaard
Рет қаралды 2,6 М.
Ken May - Why & How to Barcode your Business in Dynamics 365 Business Central
50:46
DynamicsCon hosted by Dynamics User Group
Рет қаралды 1,9 М.
Create nice HTML emails from AL code in Business Central
18:39
Erik Hougaard
Рет қаралды 7 М.
Use DotNet in AL - Even in the Business Central Cloud!
23:21
Erik Hougaard
Рет қаралды 9 М.
What's new: Business Central mobile apps featuring brand new barcode scanning capabilities
22:14
Microsoft Dynamics 365 Business Central
Рет қаралды 3,4 М.
Here are some Tips about ToolTips in AL and Business Central
16:34
Erik Hougaard
Рет қаралды 1,2 М.
Virtual Tables, real benefits in AL with Business Central
23:12
Erik Hougaard
Рет қаралды 5 М.
Fast and Furious: New Zealand 🚗
00:29
How Ridiculous
Рет қаралды 48 МЛН