Show only active users in Owner Activity Filed

In Activity we wanted to filter owner field . currently all users are showing in the list but we need only to show active users ?

I try to add an attribute in the ActivityPageV2 but it does not work unlike in the contact section

        attributes: {

            "Owner": {

                // Attribute data type.

                "dataValueType": Terrasoft.DataValueType.LOOKUP,

                "lookupListConfig": {

                    "filters": [

                        function() {

                            var filterGroup = Ext.create("Terrasoft.FilterGroup");

                            filterGroup.add("IsUser",Terrasoft.createColumnIsNotNullFilter("[SysAdminUnit:Contact].Id"));

                            

                            filterGroup.add("IsActive",

                                            Terrasoft.createColumnFilterWithParameter(Terrasoft.ComparisonType.EQUAL,"[SysAdminUnit:Contact].Active",true));

                            return filterGroup;

                        }

                    ]

                }

            },

        },

Like 0

Like

2 comments

Hi,

Your code doesn't work on the Activity page because it has additional logic to owner filters.

In order to make it work you need to override method _applyLookupListConfigToOwnerColumn in the ActivityPageV2 and make it empty:

            _applyLookupListConfigToOwnerColumn: function() {

                return false;

            }

Thank you

Show all comments