167
In implementations where Barcode scanners are used (not necessarily the mobile one, but "keyboard" one) like POS, or where user needs quickly start typing the data, developer needs to be able to set focus on specific textbox. There are two parts of this:
1) Set active textbox after the page is opened (may be property on the page?)
2) Set text box focus dynamically from AL (e.g. based on scanned barcode in one textbox, the focus moves to filed A or B based on the value, where user continues in entering the related data). This could be e.g. done through CurrPage.FieldName.SetFocus()

Setting focus helps partner to create easy and stable dataflow on the page for the enduser, which could be dynamic.
Category: Development
STATUS DETAILS
Under Review
Ideas Administrator

Thank you for your feedback. We are considering adding it to our longer term roadmap.

Your help is greatly appreciated,
Business Central Team

Comments

K

You can implement this yourselves in the WebClient
1. Create ControlAddin (1px) and add this one at the bottom of the page
2. Create a function in the ControlAddIn where you pass along the fieldname (=Caption) you want to select
3. With jQuery you can search in the HTML page the ID of this field. With this ID, you can construct the ID of the TextBox.
4. In default jQuery there is a function called .focus() you can use to set a focus on a TextBox or whatever you want.

In RTC you can use SendKeys to do what you need.

Category: Development

K

We had the same problem (NAV2017, universal app ). This feature would make the universal app viable for customers who need simple barcode scanning functions.

Category: Development

K

Hello,

We have the exact same problem here with Barcode scanners

Please bring this back :)

Category: Development

K

Yes, this is very important for scanning and for other user requirements.

Category: Development

K

We have the exact same situation in one of our implementation. I beg for this feature. :)

Category: Development