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

I would like to get the dimension values.

(0) ShareShare
ReportReport
Posted on by 132

"Main Table" which I created and then added one field i.e:Dimensions and gave a "dimension" table relation. Now I added one field in customer there I would like to get the dimension values that is based on Dimensions field value which is "Main Table"(What dimension you selected).

I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,708 Moderator on at

    Hi DyavariS ,

    Please define the TableRelation property in the new field of customer table and mention as per below.

    Here in the Image, you can replace by your customer table "Main Table"

    pastedimage1651848268065v1.png

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,111 Moderator on at

    When you use dimensions in customized table in Business Central you should try to do it the same way that Microsoft do it in the base application.

    Use dimension sets and manage them using the dimension management codeunit.

  • Verified answer
    YUN ZHU Profile Picture
    95,718 Super User 2025 Season 2 on at

    Hi, if you want to show shortcut dimensions on the page, hope the following will help.

    pastedimage1652056904524v1.png

    pastedimage1652056926670v2.png

    tableextension 50100 MyExtension extends Customer
    {
        fields
        {
            field(50103; "ZY ShortcutDim3Code"; Code[20])
            {
                Caption = 'Shortcut Dimension 3 Code';
                CaptionClass = '1,2,3';
                TableRelation = "Dimension Value".Code where("Global Dimension No." = const(3));
                DataClassification = CustomerContent;
            }
        }
    }
    
    pageextension 50100 MyExtension extends "Customer Card"
    {
        layout
        {
            addafter(Name)
            {
                field("ZY ShortcutDim3Code"; Rec."ZY ShortcutDim3Code")
                {
                    ApplicationArea = All;
                }
            }
        }
    }

    As mentioned by Inge, the processing of Dimension is very special in BC, it is recommended that you can refer to the standard code to customize.

    Hope this helps.

    Thanks.

    ZHU

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,664

#2
YUN ZHU Profile Picture

YUN ZHU 960 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 773 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans