Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Data entry via barcode not working when data entry done manually is working in a simple form in AX 2012R2

(0) ShareShare
ReportReport
Posted on by 75

Hi,

I have a simple form in 2012 R2 where two fields get updated. The form has 2 string edit fields. Both fields have modified and validate methods. The validate methods run checking existing data in the tables. The modified method from the first field sets focus to the second field. The validate method from the second field runs checking data. The modified method from the second field runs a update method via

element.UpdateLocation();

This update method runs updating the data, clearing the fields on the form, and setting focus back to the first field.

All works fine if the data entry is done by choosing data via drop downs on the form. But if the data entry is done by scanning barcodes using a scanner, it only works sometimes but not always. I have tried changing the scanner to use carriage return or tab using the scanner setup functions. The barcodes read fine into notepad. It isn't a issue with the barcodes. 

Sometimes when using barcodes the modified method isn't called on the second field and parts of data scanned from the second barcode populate back over to the first field.

Any help is appreciated.

Thanks

David

  • Sheikh Sohail Profile Picture
    6,125 on at
    RE: Data entry via barcode not working when data entry done manually is working in a simple form in AX 2012R2

    You are welcome

  • David Vanechaute Profile Picture
    75 on at
    RE: Data entry via barcode not working when data entry done manually is working in a simple form in AX 2012R2

    Thanks Sohail Sheikh.

  • Suggested answer
    nmaenpaa Profile Picture
    101,156 Moderator on at
    RE: Data entry via barcode not working when data entry done manually is working in a simple form in AX 2012R2

    I recommend to use a keyboard debugging software so that you can truly see each character/command that the scanner sends. This will help you troubleshooting. Once you have more info, you could try to search/ask for help on some barcode scanner communities, or ask the manufacturer of the scanner. I'd say there's not so much you can do in D365 side regarding this issue.

  • Verified answer
    Sheikh Sohail Profile Picture
    6,125 on at
    RE: Data entry via barcode not working when data entry done manually is working in a simple form in AX 2012R2

    Hi David

    I believe you need to override the field change event to achieve to trigger your required method. Have you already tried?

  • David Vanechaute Profile Picture
    75 on at
    RE: Data entry via barcode not working when data entry done manually is working in a simple form in AX 2012R2

    It does work 100% using a normal keyboard and choosing the values from the data in the two fields on the form. I have tried all the scanner settings available on the scanner.

  • Suggested answer
    nmaenpaa Profile Picture
    101,156 Moderator on at
    RE: Data entry via barcode not working when data entry done manually is working in a simple form in AX 2012R2

    Perhaps it helps if we forget the scanner for a while. The barcode scanner is basically a "keyboard" which just sends string input to the operating system. The exact content of the input depends on the scanner setup.

    But before scanning anything, please test your form with a normal keyboard. Type the "barcode" and click Enter. Does it work 100% like this? Then repeat it for the second field. If it works like this, then the issue should be possible to solve with adjusting the scanner settings.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,886 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,768 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans