При создании контакта, бесконечно загружает все адреса связанного контрагента в деталь.
3 мая 2018 03:14
Вопрос
Мы не можем добавить контакты. При добавление контакта страница зависает.
Ответ
Две детали "Деталь: Адреса контакта" и "Деталь: Средства связи контакта" были удалены со страницы контакта. Поэтому вы не можете создать новые контакты.
Необходимо вернуть эти детали и ошибка пропадет.
Для этого добавьте в схему ContactPageV2 сдедующий код:
details: {
"AccountAddress": {
"schemaName": "AccountAddressDetailV2",
"entitySchemaName": "AccountAddress",
"filter": {
"detailColumn": "Account",
"masterColumn": "Account"
},
"useRelationship": true,
"filterMethod": "accountAddressFilter"
},
"AccountCommunication": {
"schemaName": "AccountCommunicationDetail",
"entitySchemaName": "AccountCommunication",
"filter": {
"detailColumn": "Account",
"masterColumn": "Account"
},
"useRelationship": true,
"filterMethod": "accountAddressFilter"
}
},
/**......*/
methods: {
accountAddressFilter: function() {
var account = this.get("Account");
var accountId = this.Terrasoft.GUID_EMPTY;
if (account && account.value) {
accountId = account.value;
}
var filterGroup = new this.Terrasoft.createFilterGroup();
filterGroup.logicalOperation = this.Terrasoft.LogicalOperatorType.AND;
filterGroup.add("AccountFilter", this.Terrasoft.createColumnFilterWithParameter(
this.Terrasoft.ComparisonType.EQUAL, "Account", accountId));
return filterGroup;
}
},
/**......*/
Показать все комментарии
Войдите или зарегистрируйтесь, что бы комментировать