Hello there,
I have 2 entities Contact and Oportunity, I create a "many to many" link between them.
Then I want to add middle fields so I use additionalColumns.
I create a field called active (boolean) but I also want to create a field called "call" which is a belongsTo link type to another entity.
In entityDefs/Contact.json :
I haven't figured out how to create this type of field in the middle view, is it possible or/and what's the best way to do it?
Thank you for your support and looking forward to your response.
I have 2 entities Contact and Oportunity, I create a "many to many" link between them.
Then I want to add middle fields so I use additionalColumns.
I create a field called active (boolean) but I also want to create a field called "call" which is a belongsTo link type to another entity.
In entityDefs/Contact.json :
Code:
"opportunities": {
"type": "hasMany",
"relationName": "linkContactOpportunity",
"foreign": "contacts",
"entity": "Opportunity",
"additionalColumns": {
"active": {
"type": "bool"
},
"call": {
"type": "link", <- belongsTo
"entity": "Call"
}
}
}
I haven't figured out how to create this type of field in the middle view, is it possible or/and what's the best way to do it?
Thank you for your support and looking forward to your response.

Comment