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
2 comments
15:30 Nov 05, 2020
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
07:43 Nov 06, 2020
Bogdan Spasibov, can we do this based on a condition . I want to make this filter based on condition
Show all comments