I have a relationship in the account entity one to many (account parent => subsidiaries) and i have a multi-enum field (accountType labeled as Company Type) on the account with values (Client - Accountant - Introducer), i have created a custom view for the (account parent) field so that when i select parent account i want to chose only from accounts that have accountType of Client. Everything works fine so far and the custom field works fine however i am struggling to get the value (Client) select on the accountType (Company Type) whne the list is show: below the code for my custom field
Code:
Espo.define('custom:views/account/fields/account-parent', 'views/fields/link', function (Dep) { return Dep.extend({ getSelectFilters: function () { return { 'accountType': { type: 'arrayAnyOf', attribute: 'accountType', value: ["Client"], } }; }, }); });
thanks
Comment