Skip to main content

Notifications

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 145
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.

  • LM-26090852-0 Profile Picture
    145 on at
    Table Relation Columns
    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. 
  • Verified answer
    YUN ZHU Profile Picture
    84,728 Super User 2025 Season 1 on at
    Table Relation Columns
    This is very simple, just add the following property.
     
    Thanks.
    ZHU
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    17,404 Super User 2025 Season 1 on at
    Table Relation Columns
    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.
     

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 1,452

#2
YUN ZHU Profile Picture

YUN ZHU 1,313 Super User 2025 Season 1

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 1,083 Most Valuable Professional

Featured topics

Product updates

Dynamics 365 release plans