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 2025 wave 2 (BC27.1): Use the Account Payable Role Center

Hi, Readers.Dynamics 365 Business Central 2025 wave 2 (BC27.1) is generally available. More details: Cumulative Update Summary for Micros...

19 hours ago

Business Central 2025 wave 2 (BC27.1): Print the Audit Trail report (report 330 “Audit Trail”)

Hi, Readers.Dynamics 365 Business Central 2025 wave 2 (BC27.1) is generally available. More details: Cumulative Update Summary for Micros...

1 day ago

Business Central 2025 wave 2 (BC27.1): Connect AI agents to Business Central through MCP server (Dynamics 365 Business Central MCP)

Hi, Readers.Dynamics 365 Business Central 2025 wave 2 (BC27.1) is generally available. More details: Cumulative Update Summary for Microsoft D...

3 days ago

Cumulative Update Summary for Microsoft Dynamics 365 Business Central (November, 2025)

Cumulative Update (November, 2025) for Microsoft Dynamics 365 Business Central is now released. BC27: CU01 Cloud (SaaS): Managing Production a...

3 days ago

Dynamics 365 Business Central Blog Series: Debugging in AL

Articles in this series: Snapshot Debugging (Debugging in Cloud Production) Snapshot Debugging (Debugging in Cloud Production) How to set a co...

6 days ago

なんでもCopilot 55: ERPの進化を体感!Copilot × Dynamics 365 Business Central (2025/11/19 Wed 20:00 〜 21:30 オンライン)

Register Now (Registration Period: 2025/11/05(Wed) 21:00 〜 2025/11/19(Wed) 21:30) 当日のアジェンダ スケジュール タイトル 登壇者 20:00-20:10 オープニング もくだいさん&ぺぺさん&にしさん...

7 days ago

Dynamics 365 Business Central: How to set a condition on a breakpoint in debugging (Conditional breakpoints)

Hi, Readers.Today I would like to talk about how to set a condition on a breakpoint in debugging (Conditional breakpoints). The basic concept ...

7 days ago

Dynamics 365 Business Central: Automatically create Lot/Serial No. Information card on posting (No customization)

Hi, Readers.Today I would like to talk about how to automatically create Lot/Serial No. Information card on posting (No customization).As you ...

8 days ago

Dynamics 365 Business Central Blog Series: Performance Profiler

Articles in this series: Profiling AL performance with snapshot debugger (AL: Generate profile file) Profiling AL performance with snapshot de...

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