web
You’re offline. This is a read only version of the page.
close
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

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    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.

  • David Vanechaute Profile Picture
    75 on at

    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.

  • Verified answer
    Sheikh Sohail Profile Picture
    6,125 on at

    Hi David

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

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    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.

  • David Vanechaute Profile Picture
    75 on at

    Thanks Sohail Sheikh.

  • Sheikh Sohail Profile Picture
    6,125 on at

    You are welcome

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 544 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans