Skip to main content

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.

CaptionClass property in Business Central

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,'.


CaptionClass property in Business Central

This way we can change Caption of CaptionClass property in Business Central. Now, changed caption of CaptionClass will be look like below screenshot.

CaptionClass property in Business Central


Regards,

Harshil Patel | www.techharshil.com

Comments

Popular posts from this blog

Custom API in Business Central

Today, I will demonstrate how to work with custom API in Business Central. Custom API is very useful when we are working with integration apps. So, lets start exploring custom API in business central. We will take one table called student and will create one API page in order to access this table as API. Moreover, we can check this API in Postman as well. Here, we will mainly perform three operations GET, Post, and Delete. First of all, we will create student Table with four fields ID, First Name, Last Name and Email. For the primary key we will take ID. Once table is added, we will create one list page to view our data. So, we can easily check our custom API is working properly or not. Now, we will add another page which is used as API. This is a new page type introduced in business central. You can check how to create API page in business central.( Click Here ) Now, we can interact with student  data with the help of this API page in the business central. We will write a logic i

Import Excel File in Business Central

Import Excel in Business Central Many times we need to import data through excel file in the business central / navision. We used to perform this kind of activity in the navision but we need to explore the thing in business central. So, i am trying to import data from excel file in the business central. I am using business central wave 1 2020 for the development. We will create a table called student and add some fields to test imported data from Excel in Business Central. Now, We will add a new list page to view imported data from excel. Now, We will create a new report to import data from the excel in business central. If you worked with the navision then you might be noticed that some of the functions are not working in the business central due to scope issue. So, we will replace those functions which we used in NAV and try some new available functions to import excel. Now, we will add an action to the list page for import data

Export Excel in Business Central Using Excel Buffer - Harshil Patel

Export Excel in Business Central Using Excel Buffer Hello, Today we will export data using excel buffer in the business central. If you haven't check my previous blog then check out import excel in business central ( Click Here! ). Now we will create a report to export data using excel buffer in business central. Now, we will add this report to the action of the list page. OUTPUT Go to the student list page and click on the action to export data. Now, you can see the exported data in the excel file. You can download source code from GitHub ( ClickHere ). Regards, Harshil Patel