How to change CaptionClass property in Business Central with the help of AL code? Last week, I had a request to change a caption of County in the Customer Card. So, I had checked in the Customer Table, County caption is coming from CaptionClass property in Business Central. Now, we do not have an access to change this CaptionClass property in Business Central with the help of Page Extension. So, what we can do to change the caption of CaptionClass property in Business Central? Caption in the business central is managed through codeunit 42 ( Caption Class ). We can make a change the caption of the field which has CaptionClass property in the Business Central with the help of event subscriber where we need to check Caption Area i.e. '5' and what it contains after that i.e. '1,' . This way we can change Caption of CaptionClass property in Business Central. Now, changed caption of CaptionClass will be look like below screenshot. Regards, Harshil Patel | www.tech
How to add editable field in Ledger Entries in Business Central? Many times we need to make an editable field in the business central on Customer Ledger entries or General Ledger Entries or Item Ledger Entries. On the Ledger Entries, we can not add directly editable fields on the page because these Ledger Entry pages are designed to not allow modify fields because of below code. So, I want to add field called comment on the General Ledger Entries. Now, what we can do if we want to add editable field on the General Ledger Entries? Firstly, we will extend table and add comment field and then will extend general ledger entries and add our field at the last. tableextension 50261 tableextension50261 extends "G/L Entry" { fields { // Add changes to table fields here field( 50261 ; Comments; Text [ 250 ] ) { DataClassification = CustomerContent; Caption = 'Comments' ; } } } pageextension 502