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: Assign the default dimensions to multiple items/customers/vendors/other accounts at the same time (View or edit dimensions for a group of records)

Hi, Readers.Today I would like to share a tip when setting up default dimensions in Business Central.Dimensions are values that categorize ent...

2 hours ago

Dynamics 365 Business Central 2024 release wave 2 (BC25)

The 2024 release wave 2 plan covers all new functionalities planned to be delivered to market from October 2024 to March 2025. Check out the f...

13 hours ago

The release plan for Dynamics 365 Business Central 2024 release wave 2 (BC25) is available now!!!

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

1 day ago

Archiving Projects (Jobs) in Microsoft Dynamics 365 Business Central

Microsoft Dynamics 365 Business Central is a powerful Enterprise Resource Planning (ERP) solution that offers a wide range of features. One su...

1 day ago

Dynamics 365 Business Central: Conversion between Blob data type and Media/MediaSet data type

Hi, Readers.Today I would like to talk about how to convert between Blob data type and Media/MediaSet data type in AL.As you might know, there...

2 days ago

Dynamics 365 Business Central: About the automatic filtering problem after using Page.SetSelectionFilter Method

Hi, Readers.Today I would like to briefly share a question I saw yesterday in the Dynamics 365 Community, Page – Filter Reset – af...

6 days ago

Dynamics 365 Business Central: Publish without debugging (Ctrl+F5) and Debug without publishing (Ctrl+Shift+F5)

Hi, Readers.Today I would like to share a mini tip about Business Central development, Publish without debugging (Ctrl+F5) and Debug without p...

7 days ago

Cumulative Update Summary for Microsoft Dynamics 365 Business Central(July, 2024)

Cumulative Update (July, 2024) for Microsoft Dynamics 365 Business Central is now released. BC24: Released Updates for Microsoft Dynamics 365 ...

8 days ago

Dynamics 365 Business Central: How to get the full version text in Help & Support via AL (Record daily version information)

Hi, Readers.Today I would like to talk about an interesting topic, how to get the full version text in Help & Support via AL.From the Help...

9 days ago

How to delete Incoming Document Records from Posted Documents in Dynamics 365 Business Central

Hi, Readers.Today I would like to talk about a simple topic, how to delete Incoming Document Records from Posted Documents in Dynamics 365 Bus...

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