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...
Suggested Answer

Modify DecimalPlaces property in a Page or Table Extension

(3) ShareShare
ReportReport
Posted on by 891
We've had a request to display to 9 decimal places on BC Page: Currency Exchange Rates (483, List) SourceTable = Currency Exchange Rate (330) - see screenshot below:
 
The source table contains the following:
 
        field(6; "Relational Exch. Rate Amount"; Decimal)
        {
            AccessByPermission = TableData Currency = R;
            Caption = 'Relational Exch. Rate Amount';
            DecimalPlaces = 1 : 6;
            MinValue = 0;

            trigger OnValidate()
            begin
                TestField("Relational Exch. Rate Amount");
            end;
        }
 
 
 
I attempted a test page extension as below:
pageextension 50100 MyCurrencyExchangeRatesExt extends "Currency Exchange Rates"
{
    layout
    {
        modify("Relational Exch. Rate Amount")
        {
            DecimalPlaces = 1 : 9;
        }
    }
}
... and got: The property 'DecimalPlaces' cannot be customized. AL(AL0246).
Tried a table extension... same issue.
 
Any suggestions would be greatly appreciated?
 
 
I have the same question (0)
  • Ramesh Kumar Profile Picture
    7,529 Super User 2025 Season 2 on at
    Hi,
     
    A maximum of 5 decimal places is allowed in AL.
     
     
    Thanks!
    Ramesh
     
    If this was helpful, please check the "Does this answer your question?" box and mark it as verified.
  • Suggested answer
    Suresh Kulla Profile Picture
    50,245 Super User 2025 Season 2 on at
    Unfortunately, you cannot modify the property for the existing field, you can define upto 18 decimal places, so 5 is not the limit, but in your case you might need to add a new field with 9 decimal places, and use that field on the page and when someone enters the value in that field, validate the same value in the standard field.
     
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    20,614 Super User 2025 Season 2 on at

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 2,135

#2
YUN ZHU Profile Picture

YUN ZHU 733 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 612

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans