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

Business Central 2026 release wave 1 (BC28): Modernizing analytical reports for inventory

Hi, Readers.The public preview for Dynamics 365 Business Central 2026 release wave 1 (BC28) is available. Learn more: Link. I will contin...

1 day ago

Business Central 2026 release wave 1 (BC28): Get item insights with advanced KPIs and Summary (new Item Statistics page)

Hi, Readers.The public preview for Dynamics 365 Business Central 2026 release wave 1 (BC28) is available. Learn more: Link. I will contin...

2 days ago

Use customized Business Events of Microsoft Dynamics Business Central on Power Automate.

Overview Microsoft Dynamics 365 Business Central allows developers to define custom Business Events using the AL programming language. These e...

3 days ago

Business Central 2026 release wave 1 (BC28): Copy Existing Locations to Create New Locations (Copy Location)

Hi, Readers.The public preview for Dynamics 365 Business Central 2026 release wave 1 (BC28) is available. Learn more: Link. I will contin...

3 days ago

Business Central 2026 release wave 1 (BC28): Filter receipt and shipment lines to quickly find documents you want to invoice (New filters on the Get Receipt Lines, Get Shipment Lines, and Get Service Shipment Lines pages)

Hi, Readers.The public preview for Dynamics 365 Business Central 2026 release wave 1 (BC28) is available. Learn more: Link. I will contin...

5 days ago

Dynamics 365 Business Central 2026 Release Wave 1 (BC28)

Spring is here, and so is a fresh wave of Business Central goodness. The 2026 release wave 1 (BC28) starts rolling out to production on April ...

6 days ago

Business Central 2026 release wave 1 (BC28): Post purchase invoices for drop shipments independently of related sales invoices

Hi, Readers.The public preview for Dynamics 365 Business Central 2026 release wave 1 (BC28) is available. Learn more: Link. I will contin...

9 days ago

The release plan for Dynamics 365 Business Central 2026 release wave 1 (BC28) is available now!!!

Hi, Readers.Early morning in Japan time today, the 2026 release wave 1 plans for Microsoft Dynamics 365 and Power Platform has been released! ...

9 days ago

Business Central 2026 release wave 1 (BC28): Reverse drop shipments when sales and purchase documents aren’t invoiced

Hi, Readers.The public preview for Dynamics 365 Business Central 2026 release wave 1 (BC28) is available. Learn more: Link. I will contin...

10 days ago

Business Central 2026 release wave 1 (BC28): New Early Access Preview Features page (1965, List)

Hi, Readers.The public preview for Dynamics 365 Business Central 2026 release wave 1 (BC28) is available. Learn more: Link. I will contin...

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