Question

Visibility for fixed filter

Hi Team,

 

I want hide the fixed filters in activity section (PFA) based on a condition . Is there a way to do it ?

 

Regards,

Sethuraghav N

Like 0

Like

2 comments

Hello Sethuraghav,



You may try to remove these filters: 

define("ActivitySectionV2", [], function() {
    return {
        entitySchemaName: "Activity",
        methods: {
            initFixedFiltersConfig: function () {
                var fixedFilterConfig = {
                    entitySchema: this.entitySchema,
                    filters: []
                };
                this.set("FixedFilterConfig", fixedFilterConfig);
            },
            getParticipants: function() {
                var quickFilterModuleId = this.getQuickFilterModuleId();
                var owners = this.sandbox.publish("GetFixedFilter", {filterName: "Owner"},
                    [quickFilterModuleId]);
                var participants = [];
                if (!Terrasoft.isEmptyObject(owners)) {
                    owners.forEach(function(item) {
                        if (item.value !== this.Terrasoft.SysValue.CURRENT_USER_CONTACT.value) {
                            participants.push(item);
                        }
                    });
                }
                return participants;
            }
        }
    };
});

There are more details described in this Academy Article.

 

Best regards,

Bogdan S

 

Bogdan Spasibov, can we do this based on a condition . I want to make this filter based on condition 

 

Show all comments