Detailed instructions for using Multiple choice field Add-on
Hi,
I installed the Multiple choice field Add-on from the marketplace and tried to add the code given there https://marketplace.creatio.com/app/multiple-choice-field-setup-creatio.
I didn't get anything to work.
Can anyone please share more detailed instruction of how to get that work? What objects do I need to create?
Thanks,
chani
Like
Hi Chani,
Have you followed the setup guide that is available on the "Installation" tab of the app page in Creatio Marketplace?
For example, you need to add the "Hobbies" field to the "Contacts" section. In this case, create a lookup with the list of hobbies and a detail with two lookup fields: Contact and Hobby. Please follow the setup guide afterwards.
Ivan Leontiev,
I followed the setup guide but wasn't sure about the objects and fields.
Thank you for the example, I'll try this.
Hi,
Can you please look at what I have and let me know what's wrong:
My detail object codeis Usrhobbies, (title hobbies), It has 2 fields called UsrHobby (title = hobby) and UsrContact (title = contact).
I have a lookup called LookupHobby, based on the UsrLookupHobby.
I added a lookup field to the contact section UsrLookup1 (title = lookup 1).
This is my code:
mainEntitySchemaName: "Usrhobbies",
mainColumnName: "UsrContact",
relatedEntitySchemaName: "UsrHobby",
relatedColumnName: "UsrHobby"
Is this correct?
I'm not sure what the attribute name should be? and where does the field code/title (UsrLookup1) are shown in the code?
Thanks!
Ivan Leontiev,
Hi,
Can you please look at what I have and let me know what's wrong:
My detail object codeis Usrhobbies, (title hobbies), It has 2 fields called UsrHobby (title = hobby) and UsrContact (title = contact).
I have a lookup called LookupHobby, based on the UsrLookupHobby.
I added a lookup field to the contact section UsrLookup1 (title = lookup 1).
This is my code:
mainEntitySchemaName: "Usrhobbies",
mainColumnName: "UsrContact",
relatedEntitySchemaName: "UsrHobby",
relatedColumnName: "UsrHobby"
Is this correct?
I'm not sure what the attribute name should be? and where does the field code/title (UsrLookup1) are shown in the code?
Thanks!
Hi Chani,
The paremeter value relatedEntitySchemaName: "UsrHobby" should be relatedEntitySchemaName: "UsrLookupHobby". You should also replace 'UsrParticipants' with 'UsrLookup1' in the example from the Setup guide.
Ivan Leontiev,
Thank you! It's now working for a certain section.
I try the same thing for another section, it shows the lookup field for selecting, and the field that shows the selected values but the lookup field doesn't open, I can only see the name, when I press the Magnifying Glass Icon it does nothing!
Any Ideas?
This is the JS code of the field UsrProductTypes1
{
"operation": "insert",
"name": "LOOKUP9d0b6218-3687-4b1a-aac8-17c486f76004",
"values": {
"layout": {
"colSpan": 12,
"rowSpan": 1,
"column": 0,
"row": 1,
"layoutName": "OrderProductTabGridLayoutec3cb83e"
},
"bindTo": "UsrProductTypes1",
"enabled": true,
"contentType": 3
},
"parentName": "OrderProductTabGridLayoutec3cb83e",
"propertyName": "items",
"index": 1
},
This is the code I added for the multiple selection in the SCHEMA_DIFF
{
"operation": "insert",
"parentName": "Header",
"propertyName": "items",
"name": "UsrProductTypes1",
"values": {
"className": "Terrasoft.MultiChoiceCombobox",
"bindTo": "UsrProductTypes1",
"dataValueType": Terrasoft.DataValueType.ENUM,
"layout": {"column": 0, "row": 5},
"labelConfig": {
"caption": "Select participants"
}
}
},
Hi Chani,
Thank you for providing your code samples. I'm afraid we cannot identify the problem without the complete data. Could you please attach the entire schema?
define("OrderPageV2", ["MultiChoiceMixin"], function() { return { entitySchemaName: "Order", attributes: { "UsrProductTypes1": { "dataValueType": Terrasoft.DataValueType.LOOKUP } }, mixins: { MultiChoiceMixin: "Terrasoft.MultiChoiceMixin" }, modules: /**SCHEMA_MODULES*/{}/**SCHEMA_MODULES*/, details: /**SCHEMA_DETAILS*/{ "UsrSchemaa0b31022Detail3d12dd3b": { "schemaName": "UsrSchemaa0b31022Detail", "entitySchemaName": "Order", "filter": { "detailColumn": "UsrMasterOrder", "masterColumn": "Id" } }, "UsrSchemae71adfabDetail0a759ead": { "schemaName": "UsrSchemae71adfabDetail", "entitySchemaName": "OrderProduct", "filter": { "detailColumn": "Order", "masterColumn": "UsrMasterOrder" } }, "UsrSchemac06ca75aDetail9421737a": { "schemaName": "UsrSchemac06ca75aDetail", "entitySchemaName": "UsrSchools", "filter": { "detailColumn": "UsrLookup2", "masterColumn": "Id" } }, "UsrSchema394a596bDetail097e5410": { "schemaName": "UsrSchema394a596bDetail", "entitySchemaName": "UsrProjectInOrder", "filter": { "detailColumn": "UsrOrder", "masterColumn": "Id" } } }/**SCHEMA_DETAILS*/, businessRules: /**SCHEMA_BUSINESS_RULES*/{ "UsrBuyerContact": { "e0dfb13a-5e81-4628-a354-8b76f6c83e66": { "uId": "e0dfb13a-5e81-4628-a354-8b76f6c83e66", "enabled": true, "removed": false, "ruleType": 1, "baseAttributePatch": "Account", "comparisonType": 3, "autoClean": true, "autocomplete": false, "type": 1, "attribute": "Account" }, "0df7e056-b2b2-4c3c-9f99-58c27e784cb2": { "uId": "0df7e056-b2b2-4c3c-9f99-58c27e784cb2", "enabled": true, "removed": false, "ruleType": 3, "populatingAttributeSource": { "expression": { "type": 1, "attribute": "Opportunity", "attributePath": "Contact" } }, "logical": 0, "conditions": [ { "comparisonType": 2, "leftExpression": { "type": 1, "attribute": "Account" } } ] } }, "UsrInfluencerContact": { "765d1cb1-7a8a-46ff-ba3e-4e16609d49f4": { "uId": "765d1cb1-7a8a-46ff-ba3e-4e16609d49f4", "enabled": true, "removed": false, "ruleType": 1, "baseAttributePatch": "Account", "comparisonType": 3, "autoClean": false, "autocomplete": false, "type": 1, "attribute": "Account" } }, "ActualDate": { "21acc45e-7233-4425-8aeb-fffdf1227df3": { "uId": "21acc45e-7233-4425-8aeb-fffdf1227df3", "enabled": true, "removed": false, "ruleType": 3, "populatingAttributeSource": { "expression": { "type": 1, "attribute": "DueDate" } }, "logical": 0, "conditions": [ { "comparisonType": 2, "leftExpression": { "type": 1, "attribute": "DueDate" } } ] } }, "UsrParentAccount": { "deefd8ed-edd0-46ef-96e8-37da9fe67ee1": { "uId": "deefd8ed-edd0-46ef-96e8-37da9fe67ee1", "enabled": true, "removed": true, "ruleType": 3, "populatingAttributeSource": { "expression": { "type": 1, "attribute": "Account" } }, "logical": 0, "conditions": [ { "comparisonType": 3, "leftExpression": { "type": 1, "attribute": "Account", "attributePath": "Type" }, "rightExpression": { "type": 0, "value": "64a1e8d3-589f-4152-89f3-ca138db46754", "dataValueType": 10 } } ] }, "ef7af029-794c-491b-a9f7-1c52e7fc4e1a": { "uId": "ef7af029-794c-491b-a9f7-1c52e7fc4e1a", "enabled": true, "removed": true, "ruleType": 3, "populatingAttributeSource": { "expression": { "type": 1, "attribute": "Account" } }, "logical": 0, "conditions": [ { "comparisonType": 3, "leftExpression": { "type": 1, "attribute": "Account", "attributePath": "Type" }, "rightExpression": { "type": 0, "value": "9700969d-5ceb-4abd-bd06-6316bae0f540", "dataValueType": 10 } } ] } }, "UsrDiscountPer1": { "a2e6edc8-8525-4e6a-9448-6ab02c56d301": { "uId": "a2e6edc8-8525-4e6a-9448-6ab02c56d301", "enabled": true, "removed": false, "ruleType": 3, "populatingAttributeSource": { "expression": { "type": 1, "attribute": "UsrDiscount1", "attributePath": "UsrDiscountPercentage" } }, "logical": 0, "conditions": [ { "comparisonType": 4, "leftExpression": { "type": 1, "attribute": "UsrDiscount1", "attributePath": "UsrDiscountPercentage" }, "rightExpression": { "type": 0, "value": 0, "dataValueType": 4 } } ] }, "901e5ffc-ccc7-4ccd-9f98-61c90ff6912c": { "uId": "901e5ffc-ccc7-4ccd-9f98-61c90ff6912c", "enabled": true, "removed": false, "ruleType": 0, "property": 1, "logical": 0, "conditions": [ { "comparisonType": 3, "leftExpression": { "type": 1, "attribute": "UsrDiscount1", "attributePath": "UsrDiscountPercentage" }, "rightExpression": { "type": 0, "value": 0, "dataValueType": 4 } } ] }, "7655039e-7dae-4184-b6fb-1fcba6ab1851": { "uId": "7655039e-7dae-4184-b6fb-1fcba6ab1851", "enabled": true, "removed": false, "ruleType": 3, "populatingAttributeSource": { "expression": { "type": 1, "attribute": "UsrDiscount1", "attributePath": "UsrDiscountPercentage" } }, "logical": 0, "conditions": [ { "comparisonType": 3, "leftExpression": { "type": 1, "attribute": "UsrDiscount1" }, "rightExpression": { "type": 0, "value": "ef23980b-5176-439f-a938-67698d822880", "dataValueType": 10 } } ] } }, "UsrDiscountPer2": { "f0465cb0-9941-455e-a315-ae2706329b0f": { "uId": "f0465cb0-9941-455e-a315-ae2706329b0f", "enabled": true, "removed": false, "ruleType": 0, "property": 1, "logical": 0, "conditions": [ { "comparisonType": 3, "leftExpression": { "type": 1, "attribute": "UsrDiscount2", "attributePath": "UsrDiscountPercentage" }, "rightExpression": { "type": 0, "value": 0, "dataValueType": 4 } } ] }, "48d625a1-3c4f-4426-a6e6-7035e87bbc00": { "uId": "48d625a1-3c4f-4426-a6e6-7035e87bbc00", "enabled": true, "removed": false, "ruleType": 3, "populatingAttributeSource": { "expression": { "type": 1, "attribute": "UsrDiscount2", "attributePath": "UsrDiscountPercentage" } }, "logical": 0, "conditions": [ { "comparisonType": 4, "leftExpression": { "type": 1, "attribute": "UsrDiscount2", "attributePath": "UsrDiscountPercentage" }, "rightExpression": { "type": 0, "value": 0, "dataValueType": 4 } } ] }, "9ca2f1b6-dc67-406e-978d-a35ce4d0496e": { "uId": "9ca2f1b6-dc67-406e-978d-a35ce4d0496e", "enabled": true, "removed": false, "ruleType": 3, "populatingAttributeSource": { "expression": { "type": 1, "attribute": "UsrDiscount2", "attributePath": "UsrDiscountPercentage" } }, "logical": 0, "conditions": [ { "comparisonType": 3, "leftExpression": { "type": 1, "attribute": "UsrDiscount2" }, "rightExpression": { "type": 0, "value": "ef23980b-5176-439f-a938-67698d822880", "dataValueType": 10 } } ] } }, "UsrDiscountPer3": { "c6bd34c4-2fff-47aa-b1cb-423be6d2bdab": { "uId": "c6bd34c4-2fff-47aa-b1cb-423be6d2bdab", "enabled": true, "removed": false, "ruleType": 0, "property": 1, "logical": 0, "conditions": [ { "comparisonType": 3, "leftExpression": { "type": 1, "attribute": "UsrDiscount3", "attributePath": "UsrDiscountPercentage" }, "rightExpression": { "type": 0, "value": 0, "dataValueType": 4 } } ] }, "d86981c2-ef63-415e-b277-d5cfecfbfb0e": { "uId": "d86981c2-ef63-415e-b277-d5cfecfbfb0e", "enabled": true, "removed": false, "ruleType": 3, "populatingAttributeSource": { "expression": { "type": 1, "attribute": "UsrDiscount3", "attributePath": "UsrDiscountPercentage" } }, "logical": 0, "conditions": [ { "comparisonType": 4, "leftExpression": { "type": 1, "attribute": "UsrDiscount3", "attributePath": "UsrDiscountPercentage" }, "rightExpression": { "type": 0, "value": 0, "dataValueType": 4 } } ] }, "ea6b2951-792f-4cdc-ad17-581e1aed9ea5": { "uId": "ea6b2951-792f-4cdc-ad17-581e1aed9ea5", "enabled": true, "removed": false, "ruleType": 3, "populatingAttributeSource": { "expression": { "type": 1, "attribute": "UsrDiscount3", "attributePath": "UsrDiscountPercentage" } }, "logical": 0, "conditions": [ { "comparisonType": 3, "leftExpression": { "type": 1, "attribute": "UsrDiscount3" }, "rightExpression": { "type": 0, "value": "ef23980b-5176-439f-a938-67698d822880", "dataValueType": 10 } } ] } }, "UsrUsrDiscountAmount1": { "f772541e-90c1-48d1-aff8-75468d1f1f21": { "uId": "f772541e-90c1-48d1-aff8-75468d1f1f21", "enabled": true, "removed": false, "ruleType": 3, "populatingAttributeSource": { "expression": { "type": 6, "formula": { "type": 0, "dataType": 32, "operatorType": 1, "leftExpression": { "type": 0, "dataType": 4, "operatorType": 1, "leftExpression": { "type": 1, "dataType": 4, "operandType": 1, "columnPath": "UsrDiscountPer1", "columnOperandType": 0 }, "rightExpression": { "type": 1, "dataType": 4, "operandType": 0, "value": "100" }, "arithmeticOperatorType": 3 }, "rightExpression": { "type": 1, "dataType": 32, "operandType": 1, "columnPath": "UsrOriginalTotal", "columnOperandType": 0 }, "arithmeticOperatorType": 2 } } }, "logical": 1, "conditions": [ { "comparisonType": 2, "leftExpression": { "type": 1, "attribute": "UsrDiscountPer1" } } ] } }, "UsrDiscountAmount2": { "3e49cd8b-3e16-4f89-9e90-75148eb1ca3e": { "uId": "3e49cd8b-3e16-4f89-9e90-75148eb1ca3e", "enabled": true, "removed": false, "ruleType": 3, "populatingAttributeSource": { "expression": { "type": 6, "formula": { "type": 0, "dataType": 32, "operatorType": 1, "leftExpression": { "type": 0, "dataType": 4, "operatorType": 1, "leftExpression": { "type": 1, "dataType": 4, "operandType": 1, "columnPath": "UsrDiscountPer2", "columnOperandType": 0 }, "rightExpression": { "type": 1, "dataType": 4, "operandType": 0, "value": "100" }, "arithmeticOperatorType": 3 }, "rightExpression": { "type": 1, "dataType": 32, "operandType": 1, "columnPath": "UsrOriginalTotal", "columnOperandType": 0 }, "arithmeticOperatorType": 2 } } }, "logical": 0, "conditions": [ { "comparisonType": 2, "leftExpression": { "type": 1, "attribute": "UsrDiscountPer2" } } ] } }, "UsrDiscountAmount3": { "49eca5c5-f3be-4ea0-bf5e-5274f9657258": { "uId": "49eca5c5-f3be-4ea0-bf5e-5274f9657258", "enabled": true, "removed": false, "ruleType": 3, "populatingAttributeSource": { "expression": { "type": 6, "formula": { "type": 0, "dataType": 32, "operatorType": 1, "leftExpression": { "type": 0, "dataType": 4, "operatorType": 1, "leftExpression": { "type": 1, "dataType": 4, "operandType": 1, "columnPath": "UsrDiscountPer3", "columnOperandType": 0 }, "rightExpression": { "type": 1, "dataType": 4, "operandType": 0, "value": "100" }, "arithmeticOperatorType": 3 }, "rightExpression": { "type": 1, "dataType": 32, "operandType": 1, "columnPath": "UsrOriginalTotal", "columnOperandType": 0 }, "arithmeticOperatorType": 2 } } }, "logical": 0, "conditions": [ { "comparisonType": 2, "leftExpression": { "type": 1, "attribute": "UsrDiscountPer3" } } ] } }, "Amount": { "f52022bf-5901-4010-90b3-fa4b50c9b68c": { "uId": "f52022bf-5901-4010-90b3-fa4b50c9b68c", "enabled": false, "removed": true, "ruleType": 3, "populatingAttributeSource": { "expression": { "type": 6, "formula": { "type": 0, "dataType": 6, "operatorType": 1, "leftExpression": { "type": 0, "dataType": 6, "operatorType": 1, "leftExpression": { "type": 0, "dataType": 6, "operatorType": 1, "leftExpression": { "type": 1, "dataType": 6, "operandType": 1, "columnPath": "PrimaryAmount", "columnOperandType": 0 }, "rightExpression": { "type": 1, "dataType": 32, "operandType": 1, "columnPath": "UsrUsrDiscountAmount1", "columnOperandType": 0 }, "arithmeticOperatorType": 1 }, "rightExpression": { "type": 1, "dataType": 32, "operandType": 1, "columnPath": "UsrDiscountAmount2", "columnOperandType": 0 }, "arithmeticOperatorType": 1 }, "rightExpression": { "type": 1, "dataType": 32, "operandType": 1, "columnPath": "UsrDiscountAmount3", "columnOperandType": 0 }, "arithmeticOperatorType": 1 } } }, "logical": 0, "conditions": [ { "comparisonType": 2, "leftExpression": { "type": 1, "attribute": "UsrDiscount1" } } ] } }, "UsrFinalTotal": { "8ec25e50-1315-49d2-b469-b8ae1e36f890": { "uId": "8ec25e50-1315-49d2-b469-b8ae1e36f890", "enabled": true, "removed": true, "ruleType": 3, "populatingAttributeSource": { "expression": { "type": 6, "formula": { "type": 0, "dataType": 32, "operatorType": 1, "leftExpression": { "type": 1, "dataType": 32, "operandType": 1, "columnPath": "UsrOriginalTotal", "columnOperandType": 0 }, "rightExpression": { "type": 1, "dataType": 32, "operandType": 1, "columnPath": "UsrDiscountAmount", "columnOperandType": 0 }, "arithmeticOperatorType": 1 } } }, "logical": 0, "conditions": [ { "comparisonType": 2, "leftExpression": { "type": 1, "attribute": "UsrDiscountAmount" } } ] } }, "UsrState": { "9eef3cc8-c324-4239-9022-9c7566deaf85": { "uId": "9eef3cc8-c324-4239-9022-9c7566deaf85", "enabled": true, "removed": false, "ruleType": 3, "populatingAttributeSource": { "expression": { "type": 1, "attribute": "Account", "attributePath": "Region" } }, "logical": 0, "conditions": [ { "comparisonType": 2, "leftExpression": { "type": 1, "attribute": "Number" } } ] } } }/**SCHEMA_BUSINESS_RULES*/, methods: { init: function() { this.callParent(arguments); this.mixins.MultiChoiceMixin.init.call(this, arguments); }, getMultiChoiceEntitiesConfig: function () { const items = { UsrProductTypes1: { mainEntitySchemaName: "UsrProductTypeDetail", mainColumnName: "UsrOrder", relatedEntitySchemaName: "UsrProductType", relatedColumnName: "UsrProdType" } }; return items; } }, dataModels: /**SCHEMA_DATA_MODELS*/{}/**SCHEMA_DATA_MODELS*/, diff: /**SCHEMA_DIFF*/[ { "operation": "insert", "name": "Numberc4075913-7623-4bf8-bc98-61972c2ad1e0", "values": { "layout": { "colSpan": 12, "rowSpan": 1, "column": 0, "row": 0, "layoutName": "Header" }, "bindTo": "Number", "enabled": false }, "parentName": "Header", "propertyName": "items", "index": 0 }, { "operation": "insert", "name": "ActualDatef6983073-747d-4ff2-921a-e24f2d221cb1", "values": { "layout": { "colSpan": 12, "rowSpan": 1, "column": 12, "row": 0, "layoutName": "Header" }, "bindTo": "ActualDate" }, "parentName": "Header", "propertyName": "items", "index": 1 }, { "operation": "insert", "name": "Account46608e13-f539-4753-b310-fa83b50553b4", "values": { "layout": { "colSpan": 12, "rowSpan": 1, "column": 0, "row": 1, "layoutName": "Header" }, "bindTo": "Account", "enabled": false, "contentType": 5 }, "parentName": "Header", "propertyName": "items", "index": 2 }, { "operation": "insert", "name": "UsrStartDatefe7a2db4-4a1a-4090-b2d5-252b01158b7d", "values": { "layout": { "colSpan": 12, "rowSpan": 1, "column": 12, "row": 1, "layoutName": "Header" }, "bindTo": "UsrStartDate" }, "parentName": "Header", "propertyName": "items", "index": 3 }, { "operation": "insert", "name": "UsrFinalTotald8cbc939-95ad-4abe-8b9a-1d36590d2a37", "values": { "layout": { "colSpan": 12, "rowSpan": 1, "column": 0, "row": 2, "layoutName": "Header" }, "bindTo": "UsrFinalTotal", "enabled": false, "tip": { "content": { "bindTo": "Resources.Strings.UsrFinalTotald8cbc93995ad4abe8b9a1d36590d2a37Tip" } } }, "parentName": "Header", "propertyName": "items", "index": 4 }, { "operation": "insert", "name": "UsrEndDate82e36009-db5d-44bd-a741-25c7a3c8c655", "values": { "layout": { "colSpan": 12, "rowSpan": 1, "column": 12, "row": 2, "layoutName": "Header" }, "bindTo": "UsrEndDate" }, "parentName": "Header", "propertyName": "items", "index": 5 }, { "operation": "insert", "name": "BOOLEAN0081fe92-ddc8-4f8a-858d-bcf8f522ea07", "values": { "layout": { "colSpan": 12, "rowSpan": 1, "column": 0, "row": 3, "layoutName": "Header" }, "bindTo": "UsrInequality", "labelConfig": { "caption": { "bindTo": "Resources.Strings.BOOLEAN0081fe92ddc84f8a858dbcf8f522ea07LabelCaption" } }, "enabled": false, "tip": { "content": { "bindTo": "Resources.Strings.BOOLEAN0081fe92ddc84f8a858dbcf8f522ea07Tip" } } }, "parentName": "Header", "propertyName": "items", "index": 6 }, { "operation": "insert", "name": "UsrBuyerContact395579cc-7577-4134-a010-968649b8e39a", "values": { "layout": { "colSpan": 12, "rowSpan": 1, "column": 12, "row": 3, "layoutName": "Header" }, "bindTo": "UsrBuyerContact" }, "parentName": "Header", "propertyName": "items", "index": 7 }, { "operation": "merge", "name": "OrderGeneralInformationTab", "values": { "order": 0 } }, { "operation": "move", "name": "OrderGeneralInformationTab", "parentName": "Tabs", "propertyName": "tabs", "index": 0 }, { "operation": "merge", "name": "Owner", "values": { "layout": { "colSpan": 12, "rowSpan": 1, "column": 0, "row": 0 } } }, { "operation": "remove", "name": "Owner", "properties": [ "tip" ] }, { "operation": "move", "name": "Owner", "parentName": "OrderPageGeneralInformationBlock", "propertyName": "items", "index": 0 }, { "operation": "merge", "name": "DueDate", "values": { "layout": { "colSpan": 12, "rowSpan": 1, "column": 12, "row": 0 }, "enabled": true } }, { "operation": "remove", "name": "Opportunity", "properties": [ "tip" ] }, { "operation": "merge", "name": "ActualDate", "values": { "layout": { "colSpan": 12, "rowSpan": 1, "column": 12, "row": 1 }, "enabled": true } }, { "operation": "move", "name": "ActualDate", "parentName": "OrderPageGeneralInformationBlock", "propertyName": "items", "index": 3 }, { "operation": "insert", "name": "UsrStartDate7c2b0feb-ea21-4c65-aa97-b5023c85ea27", "values": { "layout": { "colSpan": 12, "rowSpan": 1, "column": 12, "row": 2, "layoutName": "OrderPageGeneralInformationBlock" }, "bindTo": "UsrStartDate", "enabled": true }, "parentName": "OrderPageGeneralInformationBlock", "propertyName": "items", "index": 5 }, { "operation": "merge", "name": "Currency8ed0b951-7cd3-49c2-b032-51a19ee423e1", "values": { "layout": { "colSpan": 12, "rowSpan": 1, "column": 0, "row": 3, "layoutName": "OrderPageGeneralInformationBlock" } } }, { "operation": "move", "name": "Currency8ed0b951-7cd3-49c2-b032-51a19ee423e1", "parentName": "OrderPageGeneralInformationBlock", "propertyName": "items", "index": 6 }, { "operation": "insert", "name": "UsrEndDate9a7291b6-5282-44af-980f-c6d987af5bfc", "values": { "layout": { "colSpan": 12, "rowSpan": 1, "column": 12, "row": 3, "layoutName": "OrderPageGeneralInformationBlock" }, "bindTo": "UsrEndDate", "enabled": true }, "parentName": "OrderPageGeneralInformationBlock", "propertyName": "items", "index": 7 }, { "operation": "insert", "name": "LOOKUPdf31360c-438c-4d6a-b235-6fc7b6c1a2b1", "values": { "layout": { "colSpan": 12, "rowSpan": 1, "column": 0, "row": 4, "layoutName": "OrderPageGeneralInformationBlock" }, "bindTo": "UsrDistrict", "enabled": false, "contentType": 5 }, "parentName": "OrderPageGeneralInformationBlock", "propertyName": "items", "index": 8 }, { "operation": "insert", "name": "UsrOriginalTotal8f49c642-f9a0-4c59-a67a-4e13e06a0ce0", "values": { "layout": { "colSpan": 12, "rowSpan": 1, "column": 12, "row": 4, "layoutName": "OrderPageGeneralInformationBlock" }, "bindTo": "UsrOriginalTotal", "enabled": false, "tip": { "content": { "bindTo": "Resources.Strings.UsrOriginalTotal8f49c642f9a04c59a67a4e13e06a0ce0Tip" } } }, "parentName": "OrderPageGeneralInformationBlock", "propertyName": "items", "index": 9 }, { "operation": "insert", "name": "LOOKUP75efc30b-e62b-4fb0-bc87-d5aa25d82ac3", "values": { "layout": { "colSpan": 12, "rowSpan": 1, "column": 0, "row": 5, "layoutName": "OrderPageGeneralInformationBlock" }, "bindTo": "UsrState", "enabled": false, "contentType": 3 }, "parentName": "OrderPageGeneralInformationBlock", "propertyName": "items", "index": 10 }, { "operation": "insert", "name": "UsrDiscountAmountbd0f127b-ca1e-43db-a7a5-733df3df5fce", "values": { "layout": { "colSpan": 12, "rowSpan": 1, "column": 12, "row": 5, "layoutName": "OrderPageGeneralInformationBlock" }, "bindTo": "UsrDiscountAmount", "enabled": false, "tip": { "content": { "bindTo": "Resources.Strings.UsrDiscountAmountbd0f127bca1e43dba7a5733df3df5fceTip" } } }, "parentName": "OrderPageGeneralInformationBlock", "propertyName": "items", "index": 11 }, { "operation": "merge", "name": "SourceOrder", "values": { "layout": { "colSpan": 12, "rowSpan": 1, "column": 0, "row": 6 } } }, { "operation": "merge", "name": "DeliveryStatus", "values": { "layout": { "colSpan": 12, "rowSpan": 1, "column": 0, "row": 7 } } }, { "operation": "merge", "name": "OrderProductTab", "values": { "order": 1 } }, { "operation": "insert", "name": "FLOATb3eb57a0-bea5-4d73-91db-48772b80a78a", "values": { "layout": { "colSpan": 12, "rowSpan": 1, "column": 0, "row": 0, "layoutName": "OrderProductTabGridLayout924c969b" }, "bindTo": "UsrOriginalTotal", "enabled": false, "tip": { "content": { "bindTo": "Resources.Strings.FLOATb3eb57a0bea54d7391db48772b80a78aTip" } } }, "parentName": "OrderProductTabGridLayout924c969b", "propertyName": "items", "index": 0 }, { "operation": "remove", "name": "PaymentAmount2636cfd6-620c-4a26-9fd3-4de021d2ab73", "properties": [ "tip" ] }, { "operation": "insert", "name": "FLOAT984a7ec8-a46d-4a58-a26e-52c2aeacc0a7", "values": { "layout": { "colSpan": 12, "rowSpan": 1, "column": 0, "row": 1, "layoutName": "OrderProductTabGridLayout924c969b" }, "bindTo": "UsrDiscountAmount", "enabled": false, "tip": { "content": { "bindTo": "Resources.Strings.FLOAT984a7ec8a46d4a58a26e52c2aeacc0a7Tip" } } }, "parentName": "OrderProductTabGridLayout924c969b", "propertyName": "items", "index": 2 }, { "operation": "insert", "name": "LOOKUP22a4cdf6-926b-4d7e-a2bb-ae4077acbb2d", "values": { "layout": { "colSpan": 12, "rowSpan": 1, "column": 12, "row": 1, "layoutName": "OrderProductTabGridLayout924c969b" }, "bindTo": "UsrInfluencerContact", "enabled": true, "contentType": 5 }, "parentName": "OrderProductTabGridLayout924c969b", "propertyName": "items", "index": 3 }, { "operation": "insert", "name": "FLOATfed2e65d-7495-4bcc-9a97-ecc53cd69c96", "values": { "layout": { "colSpan": 12, "rowSpan": 1, "column": 0, "row": 2, "layoutName": "OrderProductTabGridLayout924c969b" }, "bindTo": "UsrFinalTotal", "enabled": false, "tip": { "content": { "bindTo": "Resources.Strings.FLOATfed2e65d74954bcc9a97ecc53cd69c96Tip" } } }, "parentName": "OrderProductTabGridLayout924c969b", "propertyName": "items", "index": 4 }, { "operation": "insert", "name": "STRING66f89246-a9ee-459a-b681-4c8a0950442d", "values": { "layout": { "colSpan": 24, "rowSpan": 1, "column": 0, "row": 3, "layoutName": "OrderProductTabGridLayout924c969b" }, "bindTo": "UsrOrderComment", "enabled": true }, "parentName": "OrderProductTabGridLayout924c969b", "propertyName": "items", "index": 5 }, { "operation": "insert", "name": "OrderProductTabGroup1fc42d1e", "values": { "caption": { "bindTo": "Resources.Strings.OrderProductTabGroup1fc42d1eGroupCaption" }, "itemType": 15, "markerValue": "added-group", "items": [] }, "parentName": "OrderProductTab", "propertyName": "items", "index": 2 }, { "operation": "insert", "name": "OrderProductTabGridLayout9a150de1", "values": { "itemType": 0, "items": [] }, "parentName": "OrderProductTabGroup1fc42d1e", "propertyName": "items", "index": 0 }, { "operation": "insert", "name": "FLOATe5c52e95-b176-4ea3-a059-bda612f065e2", "values": { "layout": { "colSpan": 6, "rowSpan": 1, "column": 12, "row": 0, "layoutName": "OrderProductTabGridLayout9a150de1" }, "bindTo": "UsrUsrDiscountAmount1", "enabled": false }, "parentName": "OrderProductTabGridLayout9a150de1", "propertyName": "items", "index": 0 }, { "operation": "insert", "name": "UsrDiscountPer1564b2717-b2c6-4eb6-b91b-88b655149c9a", "values": { "layout": { "colSpan": 6, "rowSpan": 1, "column": 18, "row": 0, "layoutName": "OrderProductTabGridLayout9a150de1" }, "bindTo": "UsrDiscountPer1", "enabled": false }, "parentName": "OrderProductTabGridLayout9a150de1", "propertyName": "items", "index": 1 }, { "operation": "insert", "name": "LOOKUPc52b1514-3258-4cc9-bab5-ce14815646ff", "values": { "layout": { "colSpan": 12, "rowSpan": 1, "column": 0, "row": 0, "layoutName": "OrderProductTabGridLayout9a150de1" }, "bindTo": "UsrDiscount1", "enabled": true, "contentType": 3 }, "parentName": "OrderProductTabGridLayout9a150de1", "propertyName": "items", "index": 2 }, { "operation": "insert", "name": "UsrDiscountAmount28240c562-6f21-474d-a0dd-ffcfcc8be1ff", "values": { "layout": { "colSpan": 6, "rowSpan": 1, "column": 12, "row": 1, "layoutName": "OrderProductTabGridLayout9a150de1" }, "bindTo": "UsrDiscountAmount2", "enabled": false }, "parentName": "OrderProductTabGridLayout9a150de1", "propertyName": "items", "index": 3 }, { "operation": "insert", "name": "UsrDiscountPer279270ab0-7963-4afd-95f1-c831e93b1d9a", "values": { "layout": { "colSpan": 6, "rowSpan": 1, "column": 18, "row": 1, "layoutName": "OrderProductTabGridLayout9a150de1" }, "bindTo": "UsrDiscountPer2", "enabled": false }, "parentName": "OrderProductTabGridLayout9a150de1", "propertyName": "items", "index": 4 }, { "operation": "insert", "name": "LOOKUP787672ae-3fb5-4ca5-9e73-1d153225eae3", "values": { "layout": { "colSpan": 12, "rowSpan": 1, "column": 0, "row": 1, "layoutName": "OrderProductTabGridLayout9a150de1" }, "bindTo": "UsrDiscount2", "enabled": true, "contentType": 3 }, "parentName": "OrderProductTabGridLayout9a150de1", "propertyName": "items", "index": 5 }, { "operation": "insert", "name": "UsrDiscountAmount36c5aa346-f8b1-464d-ab97-85614a60fafb", "values": { "layout": { "colSpan": 6, "rowSpan": 1, "column": 12, "row": 2, "layoutName": "OrderProductTabGridLayout9a150de1" }, "bindTo": "UsrDiscountAmount3", "enabled": false }, "parentName": "OrderProductTabGridLayout9a150de1", "propertyName": "items", "index": 6 }, { "operation": "insert", "name": "UsrDiscountPer397ef109c-be18-4ebf-bf8b-ee8a375ab4af", "values": { "layout": { "colSpan": 6, "rowSpan": 1, "column": 18, "row": 2, "layoutName": "OrderProductTabGridLayout9a150de1" }, "bindTo": "UsrDiscountPer3", "enabled": false }, "parentName": "OrderProductTabGridLayout9a150de1", "propertyName": "items", "index": 7 }, { "operation": "insert", "name": "LOOKUP90daa349-21cb-471f-9846-baf98eea5594", "values": { "layout": { "colSpan": 12, "rowSpan": 1, "column": 0, "row": 2, "layoutName": "OrderProductTabGridLayout9a150de1" }, "bindTo": "UsrDiscount3", "enabled": true, "contentType": 3 }, "parentName": "OrderProductTabGridLayout9a150de1", "propertyName": "items", "index": 8 }, { "operation": "insert", "name": "FLOAT87aa0182-4b6d-49d0-bc13-777831f20d65", "values": { "layout": { "colSpan": 12, "rowSpan": 1, "column": 0, "row": 3, "layoutName": "OrderProductTabGridLayout9a150de1" }, "bindTo": "UsrDiscountDolar", "tip": { "content": { "bindTo": "Resources.Strings.FLOAT87aa01824b6d49d0bc13777831f20d65Tip" } }, "enabled": true }, "parentName": "OrderProductTabGridLayout9a150de1", "propertyName": "items", "index": 9 }, { "operation": "insert", "name": "OrderProductTabGroup2849569a", "values": { "caption": { "bindTo": "Resources.Strings.OrderProductTabGroup2849569aGroupCaption" }, "itemType": 15, "markerValue": "added-group", "items": [] }, "parentName": "OrderProductTab", "propertyName": "items", "index": 3 }, { "operation": "insert", "name": "OrderProductTabGridLayoutec3cb83e", "values": { "itemType": 0, "items": [] }, "parentName": "OrderProductTabGroup2849569a", "propertyName": "items", "index": 0 }, { "operation": "insert", "name": "STRING0c0c7909-dded-456a-a3a1-3172b9a8e60e", "values": { "layout": { "colSpan": 12, "rowSpan": 1, "column": 0, "row": 0, "layoutName": "OrderProductTabGridLayoutec3cb83e" }, "bindTo": "UsrProductsTypes", "enabled": true, "contentType": 0 }, "parentName": "OrderProductTabGridLayoutec3cb83e", "propertyName": "items", "index": 0 }, { "operation": "insert", "name": "LOOKUP9d0b6218-3687-4b1a-aac8-17c486f76004", "values": { "layout": { "colSpan": 12, "rowSpan": 1, "column": 0, "row": 1, "layoutName": "OrderProductTabGridLayoutec3cb83e" }, "bindTo": "UsrProductTypes1", "enabled": true, "contentType": 3 }, "parentName": "OrderProductTabGridLayoutec3cb83e", "propertyName": "items", "index": 1 }, { "operation": "insert", "parentName": "Header", "propertyName": "items", "name": "UsrProductTypes1", "values": { "className": "Terrasoft.MultiChoiceCombobox", "bindTo": "UsrProductTypes1", "dataValueType": Terrasoft.DataValueType.ENUM, "layout": {"column": 0, "row": 5}, "labelConfig": { "caption": "Select participants" } } }, { "operation": "merge", "name": "OrderPassportTab", "values": { "order": 2 } }, { "operation": "insert", "name": "UsrSchemaa0b31022Detail3d12dd3b", "values": { "itemType": 2, "markerValue": "added-detail" }, "parentName": "OrderPassportTab", "propertyName": "items", "index": 0 }, { "operation": "insert", "name": "UsrSchemac06ca75aDetail9421737a", "values": { "itemType": 2, "markerValue": "added-detail" }, "parentName": "OrderPassportTab", "propertyName": "items", "index": 2 }, { "operation": "insert", "name": "Tabed3789efTabLabel", "values": { "caption": { "bindTo": "Resources.Strings.Tabed3789efTabLabelTabCaption" }, "items": [], "order": 3 }, "parentName": "Tabs", "propertyName": "tabs", "index": 3 }, { "operation": "insert", "name": "UsrSchema394a596bDetail097e5410", "values": { "itemType": 2, "markerValue": "added-detail" }, "parentName": "Tabed3789efTabLabel", "propertyName": "items", "index": 0 }, { "operation": "merge", "name": "ESNTab", "values": { "order": 9 } }, { "operation": "merge", "name": "OrderDeliveryTab", "values": { "order": 4 } }, { "operation": "merge", "name": "OrderResultsTab", "values": { "order": 5 } }, { "operation": "insert", "name": "UsrSchemae71adfabDetail0a759ead", "values": { "itemType": 2, "markerValue": "added-detail" }, "parentName": "OrderResultsTab", "propertyName": "items", "index": 1 }, { "operation": "merge", "name": "OrderHistoryTab", "values": { "order": 6 } }, { "operation": "merge", "name": "OrderVisaTab", "values": { "order": 7 } }, { "operation": "merge", "name": "FileNotesTab", "values": { "order": 8 } }, { "operation": "remove", "name": "Amount4e558b6b-317e-42a7-b8bf-27c00cc42a78" }, { "operation": "remove", "name": "Number" }, { "operation": "remove", "name": "Date" }, ]/**SCHEMA_DIFF*/ }; });
Thank you so much!!!
I'm happy to attach it as a file id better but don't know how.
Hi Chani,
please remove the 'UsrProductTypes1' field from the Order object and remove this JS code:
{
"operation": "insert",
"name": "LOOKUP9d0b6218-3687-4b1a-aac8-17c486f76004",
"values": {
"layout": {
"colSpan": 12,
"rowSpan": 1,
"column": 0,
"row": 1,
"layoutName": "OrderProductTabGridLayoutec3cb83e"
},
"bindTo": "UsrProductTypes1",
"enabled": true,
"contentType": 3
},
"parentName": "OrderProductTabGridLayoutec3cb83e",
"propertyName": "items",
"index": 1
},
'UsrProductTypes1' field settings must be identical to those specified in the setup guide.
Ivan Leontiev,
I removed it. but this is not the problem!
Now, my UsrProductTypes1' field settings are exactly like those specified in the setup guide and it still not working!
I have the multiple selection field working in other sections with the exact same code. What else can be the problem? I need this working as soon as possible.
Thank you so much for the help!
Hi Chani,
Please check the object used in this section:
- the 'UsrProductTypes1' field should be removed from the 'Orders' section
- the 'UsrProductTypeDetail' detail should consist of two lookup fields - UsrOrder (link to the 'Orders' lookup) and UsrProdType (link to the 'UsrProductType' lookup)
We also recommend you to compile the configuration to update the current object structure and check again.
Ivan Leontiev,
I checked these 2 things a lot of times and it is well!
Tried compiling too, nothing helps.
Ivan Leontiev,
These are the 2 errors I get in the console when I press the field:
1. polyfills-es5.js?hash=fd05d8e8c14842d586d7e0aa54e402dc:1 Uncaught TypeError: Cannot read property 'getKeys' of undefined
at i.getMultiChoiceQueryFilters....
2. user: chani.grozovsky@beable.com/e2fd7eeb-c47d-426e-bdcf-2f10b82cc905
file: https://beable.creatio.com/core/26d70aeafc80ab090f8fe1bd866d4a29/ng-cor…
line: 1
column: 83820
message: Uncaught TypeError: Cannot read property 'getKeys' of undefined
date: Sun May 30 2021 16:03:14 GMT+0300 (Israel Daylight Time)
stack: TypeError: Cannot read property 'getKeys' of undefined......
Hi Chani,
We have forwarded the error description to the relevant team. We will contact you if we get feedback.
Hi Chani,
The responsible team identified the reason for the error and is now testing the updated package. We will notify you of the update on Creatio Marketplace within two days.
Hi Chani,
The responsible team updated the add-on package. The new package is now available on Creatio Marketplace
Alexander Demidov,
Can you give instruction of how to get that work?
Should I just install the add-on again?
I tried download the package but don't know how to get it into Creatio
Thanks.
Hi Chani,
Yes, just install the add-on from Creatio Marketplace once again. You can install a package in the 'Installed applications' section.