I've created a new table named 'Jurisdiction', and on my existing Job card I've added a field that is a lookup of Jurisidictions. How can I set this field to display the 'name' value of the selected record instead of the 'ID' value which is currently the primary key of the Jurisdiction table?
Here is the source of my lookup field:
field(50101; Jurisdiction; Code[100]) { DataClassification = ToBeClassified; Caption = 'Jurisdiction'; TableRelation = Jurisdictions.ID; }
And here's the source of my new Jurisdictions table:
table 50101 Jurisdictions { DataClassification = ToBeClassified; fields { field(1; ID; Integer) { DataClassification = ToBeClassified; AutoIncrement = true; } field(2; Name; Text[250]) { DataClassification = ToBeClassified; Caption = 'Name'; } } keys { key(PK; ID) { Clustered = true; } }
This might help: community.dynamics.com/.../modify-field-displayed-value
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,522 Super User 2024 Season 2
Martin Dráb 228,441 Most Valuable Professional
nmaenpaa 101,148