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

Table Relation Columns

(1) ShareShare
ReportReport
Posted on by 175
Good day,
I have this field below with table relation to Dimension 4.
 
 
I would like to modify the selection behavior in the "Proyecto" field on my page. Specifically, when a user selects a dimension value, I want the field name to be displayed instead of field code(PK).
 
I understand that this may seem as simple as changing the value of code for same letters i have on field name, but I need that field code remains numeric. This is necessary for indexing the dimension values as letters are not acceped.

Is there any way to achieve this?

Thank you for your assistance.

I have the same question (0)
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    20,603 Super User 2025 Season 2 on at
    Yes, Its possible and verry simple.
     
    add code in the onvalidate trigger of the field as below.
     
      field(50000; "Payment Process Profile Code"; Code[50])
            {
                DataClassification = ToBeClassified;
                TableRelation = "Payment Process Profile";
                Caption = 'Payment Process Profile';
                Trigger OnValidate()
                var
                    PPP: Record "Payment Process Profile";
                begin
     
                    if PPP.Get(Rec."Payment Process Profile Code") then begin
                        Rec."Payment Process Profile Code" := PPP.Name;
                    end;
                end;
            }
     
    Final op.
     
  • Verified answer
    YUN ZHU Profile Picture
    95,729 Super User 2025 Season 2 on at
    This is very simple, just add the following property.
     
    Thanks.
    ZHU
  • LM-26090852-0 Profile Picture
    175 on at
    Thank you so much for your answers!! It works!
     
    PS: Yun Zhu, thanks for always make everything easier. If you had a course, I will step forward without hesitating. 

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

#2
YUN ZHU Profile Picture

YUN ZHU 773 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 630

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans