Find more information at my blog www.hougaard.com or follow me on / ehougaard Source code can be found here: github.com/hou...
Пікірлер: 45
@umarnaeem61283 жыл бұрын
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
@Hougaard3 жыл бұрын
Check out the POS video, kinda a followup!
@prebenborg4 жыл бұрын
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)
@Hougaard4 жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
If you want to use the scanner as a keyboard, then you need to configure the scanner not to send anything else...
@jackpeterson4804 жыл бұрын
Can you go through more of the basics on AL? Starting my learning curve and loved your intro video!
@Hougaard4 жыл бұрын
I've got more beginner stuff planned, stay tuned!
@divesh62873 жыл бұрын
Hey Erik, Can you please create one video on topic ?
@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 Жыл бұрын
Then clearly the name is not correct :)
@ysr15822 жыл бұрын
How to print QR code in Report in Business Central Cloud version.
@george48044 жыл бұрын
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.
@Hougaard4 жыл бұрын
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 :)
@george48044 жыл бұрын
@@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.
@Hougaard4 жыл бұрын
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).
@yasmeensultana28023 жыл бұрын
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.?
@Hougaard3 жыл бұрын
Call release and reopen.
@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 Жыл бұрын
What kind of errors?
@ian-scho4 ай бұрын
@@Hougaard Using the 'window.parent.addEventListener(...)' command (modifying the DOM) in Javascript has possibly been deprecated in Dynamics products.
@kish1001003 жыл бұрын
Hi Erik, Can we scan barcode using mobile camera and same can we store in Business central table?
@Hougaard3 жыл бұрын
Only by using a barcode keyboard, like this: play.google.com/store/apps/details?id=com.nikosoft.nikokeyboard&hl=en_CA&gl=US
@lucianstinga15873 жыл бұрын
Hi Erik, can you please make a video on how to generate and print a QR Code on a BC AL report ? Thanks
@Hougaard3 жыл бұрын
It's not that easy, there's a lot of work involved with that.
@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 Жыл бұрын
.... Yes, but that was not the point of the hack :)
@rachitgoel20364 жыл бұрын
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.
@Hougaard4 жыл бұрын
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.
@rachitgoel20364 жыл бұрын
@@Hougaard thanks Erik
@umarnaeem61283 жыл бұрын
Waiting for the follow-up video ^^
@Hougaard3 жыл бұрын
No wait kzbin.info/www/bejne/oJK4o3WQrtKSaK8
@umarnaeem61283 жыл бұрын
@@Hougaard thank you so much
@ara3n3 жыл бұрын
why would add a sufix or prefix in a barcode scanner?
@Hougaard3 жыл бұрын
to identify when something is scanned and not just typed.
@ara3n3 жыл бұрын
@@Hougaard but aren't you doing that with speed it takes to type?
@Hougaard3 жыл бұрын
@@ara3n the more the better, it all goes to reduce the chance of "guessing" worng.
@TheRealMrIncognito4 жыл бұрын
Hi Erik, any idea how to open barcode/qr code scanner in mobile app?
@Hougaard4 жыл бұрын
By using the camera on the phone?
@george48044 жыл бұрын
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.
@TheRealMrIncognito4 жыл бұрын
As long as can scan.. Or best if can detect apps for scan barcode from mobile phone