Skip to main content

Posts

Showing posts from January, 2021

Change CaptionClass property in Business Central

  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.t

How to add editable field in Ledger Entries in Business Central?

  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  

Field Group in business central

  How to setup field group in business central? We can display a dropdown control on a page with the help of field group in the business central. This is the same thing that we are practicing in navision but the only difference is the style of defining field group. We can define field group in the table or table extension. In table object, first we will define field groups control then we have to enter one more control called fieldgroup(<Name>;Field) in the business central. We can use DropDown or Brick as Name to display data tile. Field is a comma separated list of fields. Important Points that can be taken care while using field group A field group can also be used to specify fields that display when list pages are shown in the tile view. The  fieldgroups