Is there a declarative way to display fields from a lookup on an entity's edit page? For example, if I have a Contact record whose Owner field is set and I want to display the Owner's Job Title as a read-only field on the Contact's edit page, is it possible to do without adding some code to the onEntityInitialized method to manually set another attribute which a field is based on to the value of the Job Title field? I can load the field with the record using lookupListConfig as below, but any way I try to specify that this field should be displayed on the page results in errors or nothing happening:
attributes: {
"Owner": {
lookupListConfig: {
columns: ["JobTitle"]
}
}
}
// ...
diff: [
// example of one attempted method to add the lookup field which doesn't work:
{
"operation": "insert",
"parentName": "ContactGeneralInfoBlock",
"propertyName": "items",
"name": "OwnerJobTitle",
"values": {
"bindTo": "Owner.JobTitle",
"layout": {
"column": 0,
"row": 4,
"colSpan": 12
},
"enabled": false
}
}
]
Obviously as mentioned this could be done using code, but if it's possible to do declaratively that would definitely be my preferred option - is this possible?