Loading...

How to set focus on fields using Javascript in Business Central

How to set focus on fields using Javascript in Business Central
Heres an example of how to set field focus in Business Central using one line of Javascript. Setting focus on fields can be useful for example when using barcode scanners or doing some other quick data entry. This example extends sales order lines and after entering the Item No. focuses on Quantity and after quantity focuses on Unit Price etc. Al Code: pageextension 50100 "Ext. Sales Order Subform" extends "Sales Order Subform" { layout { addlast(content) { usercontrol(SetFieldFocus; SetFieldFocus) { ApplicationArea = All; trigger Ready() begin CurrPage.

Published on:

Learn more
Posts on Microsoft Dynamics 365 Business Central Development
Posts on Microsoft Dynamics 365 Business Central Development

Recent content in Posts on Microsoft Dynamics 365 Business Central Development

Share post:

Related posts

Dynamics 365 Business Central: How to get Extension Package ID from App ID in AL

Hi, Readers.Today I would like to briefly talk about how to get Extension Package ID from App ID in AL. App ID is the unique ID of the extensi...

15 hours ago

Dynamics 365 Business Central: Restore User’s Default Permissions

Hi, Readers.Today I would like to share another mini tip in Business Central, how to restore User’s Default Permissions. As you might kn...

3 days ago

Dynamics 365 Business Central: How to convert Text to Hexadecimal in AL

Hi, Readers.Today I would like to talk about how to convert Text to Hexadecimal in AL.The hexadecimal number system is a type of number system...

4 days ago

Dynamics 365 Business Central: Regarding the problem that input data cannot be saved (Note, Work Description, etc.)

Hi, Readers.In this post, I would like to share a very strange problem I saw recently, user-entered data cannot be saved in Business Central U...

5 days ago

Dynamics 365 Business Central: How to Copy Existing Customer to New Customer with Power Automate (Copy Customer)

Hi, Readers.Today I would like to talk about how to copy Existing Customer to New Customer with Power Automate. This is a problem I’ve seen in...

6 days ago

Dynamics 365 Business Central: How to set dimension via standard API and Can we do it via Power Automate?

Hi, Readers.Today I would like to briefly talk about how to set dimension via standard API and can we do it in Power Automate?Dimensions are v...

7 days ago

Dynamics 365 Business Central: Copy Comments from Customer to Sales Document – Customization

Hi, Readers.Today I would like to talk about how to copy Comments from Customer to Sales Document. As you might know, you can add extra inform...

10 days ago

Dynamics 365 Business Central: How to quickly get field length from table number and field number

Hi, Readers.Today I would like to share another mini tip about Business Central, how to quickly get field length from table number and field n...

11 days ago
Stay up to date with latest Microsoft Dynamics 365 and Power Platform news!
* Yes, I agree to the privacy policy