web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

captions change issue

(0) ShareShare
ReportReport
Posted on by 175

hi,

I am trying to change the captions of all field in customer card and it;s successfully changed but some of the fields cation are not changed like 

Total sales, Cost($), Profit($).

Can any one help me and tell me why these fields cations are not chaging ?

I have the same question (0)
  • Suggested answer
    THE Italian Profile Picture
    on at

    What kind of changes you did? Have you implemented an appropriate XLIFF file or?...

    What you mention are NOT fields, these are global variables calculated within the pages. See below W1 version

    ...

                   field(TotalSales2; GetTotalSales)

                   {

                       ApplicationArea = Basic, Suite;

                       Caption = 'Total Sales';

                       Style = Strong;

                       StyleExpr = TRUE;

                       ToolTip = 'Specifies your total sales turnover with the customer in the current fiscal year. It is calculated from amounts excluding VAT on all completed and open invoices and credit memos.';

                   }

                   field("CustSalesLCY - CustProfit - AdjmtCostLCY"; CustSalesLCY - CustProfit - AdjmtCostLCY)

                   {

                       ApplicationArea = Basic, Suite;

                       AutoFormatType = 1;

                       Caption = 'Costs (LCY)';

                       ToolTip = 'Specifies how much cost you have incurred from the customer in the current fiscal year.';

                   }

                   field(AdjCustProfit; AdjCustProfit)

                   {

                       ApplicationArea = Basic, Suite;

                       AutoFormatType = 1;

                       Caption = 'Profit (LCY)';

                       Editable = false;

                       Importance = Additional;

                       ToolTip = 'Specifies how much profit you have made from the customer in the current fiscal year.';

                   }

                   field(AdjProfitPct; AdjProfitPct)

                   {

                       ApplicationArea = Basic, Suite;

                       Caption = 'Profit %';

                       DecimalPlaces = 1 : 1;

                       Editable = false;

                       Importance = Additional;

                       ToolTip = 'Specifies how much profit you have made from the customer in the current fiscal year, expressed as a percentage of the customer''s total sales.';

                   }

    ...

  • SirDard Profile Picture
    175 on at

    Hi, Duilio,

    Thanks for your quick response.

    I am trying with below code.

    pageextension 50008 SalesInvoice_Extension extends "Customer Card"

    {

       layout

       {

           // Add changes to page layout here

           modify(TotalSales2)

           {

               ApplicationArea = Basic, Suite;

               Caption = 'Total';

               Importance = Additional;

               ToolTip = 'Specifies the number of the contact the invoice will be sent to.';

               //CaptionClass = Format(StrSubstNo(OverduePaymentsMsg, Format(WorkDate)));

           }

    also i was trying with XLIFF  file but no luck.

    yes, its global variable but how to change its caption ? can you help me ?

  • Community Member Profile Picture
    on at

    You cannot change existing field caption in Page Extension object.  What you need to do is to hide the field  and add new field with the same "Source" then you can change the caption

    See below link for what you can or can't do in Page Extension.

    docs.microsoft.com/.../devenv-page-property-overview

  • SirDard Profile Picture
    175 on at

    Hi, Aotto

    Thanks for your quick response .

    One thing can you please give me any example what you actually want to say like we have a field name Total sales in sales invoice we are unable to change its caption so how we can add new field for this with the same source ?

    Another also we have noticed there are multiples of fields which donot change its caption so we have to use your idea for all fields like Address, city , Contact in sales Invoice ?

  • Community Member Profile Picture
    on at

    for the code sample see the reply from Duilio Tacconi

  • Verified answer
    Olister Rumao Profile Picture
    3,967 on at

    Hi Waqar Ahemad,

    AFAIK you cannot change the Captions of the fields which already have a CaptionClass.

    Add a new field in the page with source as variable and add you caption as needed.

    And then modify the

    addafter(TotalSales2)

    {

    field(TotalSales2_NEW;GetTotalSales)

    {

        ApplicationArea= All;

        Caption= 'Your Caption'

    }

    }

    modify(TotalSales2)

    {

      Visible = false;

    }

  • Verified answer
    THE Italian Profile Picture
    on at

    Yup. For these calculated values and the one under the Caption Class you have to create a facade field with the caption you like and make the standard field not visible.

  • SirDard Profile Picture
    175 on at

    Thanks olister,

    It's working . can you tell me how can i change group caption like I need to change

    group(General) caption because its not changed through modify(general) command.

  • Suggested answer
    Olister Rumao Profile Picture
    3,967 on at

    See,

    Create a group and move all fields from General to that group.

    Give captions to that group.

    And hide General group.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,151

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,443 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,092 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans