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 2024 wave 2 (BC25): Access keys with Key Tips in more languages

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

1 day ago

Managing Posting Restrictions on Sales/Purchase Document According to various users in MS 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

Business Central 2024 wave 2 (BC25): New options for Search in lists (Modern Search and new OptimizeForTextSearch property)

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

1 day ago

Business Central 2024 wave 2 (BC25): Use multiple VAT/TAX numbers for a customer (Alternative Customer VAT Registration)

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

1 day ago

Business Central 2024 wave 2 (BC25): Wildcard search (* and ?) in AL Explorer

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

1 day ago

Business Central 2024 wave 2 (BC25): Use the ternary operator ?: when coding in the AL language

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

2 days ago

Business Central 2024 wave 2 (BC25): New Date/Time/DateTime methods

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

2 days ago

Business Central 2024 wave 2 (BC25): Extend and customize profiles from other extensions (New object type: profileextension)

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

2 days ago

The public preview for Dynamics 365 Business Central 2024 release wave 2 (BC25) is available

Hi, Readers.The public preview environment for Dynamics 365 Business Central 2024 release wave 2 (BC25) is available now. In Dynamics 365 Busi...

3 days ago

Dynamics 365 Business Central: How to hide all comment lines in Standard Sales – Order Conf. (1305) report (Do not print comment lines) – Customization

Hi, Readers.Today I would like to briefly talk about a qustion I saw in the Dynamics 365 Community yesterday, how to hide all comment lines in...

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