Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

How to make a field in Bank account ledger editable?

Posted on by 100

Hi,

I need to create a field say "Field1" in the Bank ledger entry (Table 271) and Fixed asset (Table 5600). 

I need Field1 to be editable to the users. Now for Customer Ledger & Vendor Ledger we have respective codeunits to make the specific fields on the table editable.

But for  Bank ledger entry & Fixed asset, i dont see such codeunits or functionality in the system. 

Can someone suggest on how to proceed with this. Any help on this would be appreciated.

Thanks

Johnson Patrick

  • Suggested answer
    Bilal Haider Profile Picture
    Bilal Haider 43 on at
    RE: How to make a field in Bank account ledger editable?

    Regarding your second requirement the codeunit you mentioned does not make fields editable rather it updates the values of fields inside AL.

  • Suggested answer
    Bilal Haider Profile Picture
    Bilal Haider 43 on at
    RE: How to make a field in Bank account ledger editable?

    Hi,

    You need to add field to table using table extension and page using page extension. Like the code below.

    tableextension 50300 BankAccountTableExt extends "Bank Account Ledger Entry"
    {
        fields
        {
            field(50100; "VMI No."; Code[20])
            {
                DataClassification = ToBeClassified;
                Caption = 'VMI No.';
            }
        }
    }
    
    pageextension 50300 BankAccountPageExt extends "Bank Account Ledger Entries"
    {
        Editable = true;
        layout
        {
            addafter("Document No.")
            {
                field("VMI No."; Rec."VMI No.")
                {
                    Editable = true;
                    ApplicationArea = All;
                    Caption = 'VMI No.';
                }
            }
        }
    
    }

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: How to make a field in Bank account ledger editable?

    Yes we have those codeunit already in the system, but for Bank and FA you have to defined in your custom way.

    Thanks

  • Johnson_Patrick Profile Picture
    Johnson_Patrick 100 on at
    RE: How to make a field in Bank account ledger editable?

    We have codeunit 103 "Cust. Entry-Edit" which makes specific fields on the Customer Ledger Entry Editable likewise for vendor ledger entry we have "Vend. Entry-Edit".

    But Bank Ledger Entry & Fixed asset doesnt have this functionality defined.  

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: How to make a field in Bank account ledger editable?

    Hi,

    What do you mean this line?

    I need Field1 to be editable to the users. Now for Customer Ledger & Vendor Ledger we have respective codeunits to make the specific fields on the table editable.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,113 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,918 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans