Hello. I'm working with the Multiple choice field setup for Creatio (https://marketplace.creatio.com/app/multiple-choice-field-setup-creatio) add-on but I'm not getting it to save the selected values.
I've followed the guide here: https://marketplace.creatio.com/sites/marketplace/files/app-guide/Multi…
I have the Lookup object that I select. I have the link table (which is equivolent to ActivityParticipant which is used in the guide-example)
I get the values correctly on the page, and they are selectable. But nothing is saved to the database when i Save the record
Object: Contact
Lookup: ChessInterest
Link-object: ChessContactInterest
define("ContactPageV2", ["MultiChoiceMixin"], function() {
return {
entitySchemaName: "Contact",
attributes: {
"ChessInterests": {"dataValueType": Terrasoft.DataValueType.LOOKUP}
},
mixins: {MultiChoiceMixin: "Terrasoft.MultiChoiceMixin"},
modules: /**SCHEMA_MODULES*/{}/**SCHEMA_MODULES*/,
}
...
methods: {
init: function() {
this.callParent(arguments);
this.mixins.MultiChoiceMixin.init.call(this, arguments);
},
getMultiChoiceEntitiesConfig: function () {
const items = {
ChessInterests: {
mainEntitySchemaName: "ChessContactInterest",
mainColumnName: "Contact",
relatedEntitySchemaName: "ChessInterest",
relatedColumnName: "ChessInterest"
}
};
return items;
}
},
...
diff: /**SCHEMA_DIFF*/[
{
"operation": "insert",
"name": "ChessInterests",
"values": {
"className": "Terrasoft.MultiChoiceCombobox",
"bindTo": "ChessInterests",
"dataValueType": 11,
"layout": {
"colSpan": 12,
"rowSpan": 1,
"column": 0,
"row": 5
},
"labelConfig": {
"caption": "Select interests"
}
},
"parentName": "Header",
"propertyName": "items",
"index": 0
},
}