Hello,
What is the easiest way to get additional fields from a link inside a view?
For example, suppose I have something like this in my entityDef
"noticeOfViolation": {
"type": "belongsTo",
"foreign": "violationResponses",
"entity": "NoticeOfViolation",
"audited": false,
"isCustom": true
},
some javascript code like this gives me the id and name of this linked field but how do I access other columns/fields of the linked entity inside a view file?
We can access these by default:
this.model.get('noticeOfViolationId')
this.model.get('noticeOfViolationName')
But what if I want to get the actual record noticeOfViolation and all of its fields ?
How do I go about doing that?
What is the easiest way to get additional fields from a link inside a view?
For example, suppose I have something like this in my entityDef
"noticeOfViolation": {
"type": "belongsTo",
"foreign": "violationResponses",
"entity": "NoticeOfViolation",
"audited": false,
"isCustom": true
},
some javascript code like this gives me the id and name of this linked field but how do I access other columns/fields of the linked entity inside a view file?
We can access these by default:
this.model.get('noticeOfViolationId')
this.model.get('noticeOfViolationName')
But what if I want to get the actual record noticeOfViolation and all of its fields ?
How do I go about doing that?
Comment