Hello,
I have set up default filters on a section by following these links:
https://customerfx.com/article/programmatically-overriding-or-adding-fi…
https://community.creatio.com/questions/default-filter-section
Is there a way to filter records with folders in addition to the default filter made in getFilters?
Here is my getFilters method:
getFilters: function() {
var filters = this.callParent(arguments);
filters.logicalOperation = this.Terrasoft.LogicalOperatorType.OR;
filters.add("FilterByAM", this.Terrasoft.createColumnFilterWithParameter(
this.Terrasoft.ComparisonType.EQUAL,
"MQAccountManager.Id",
Terrasoft.SysValue.CURRENT_USER_CONTACT.value
));
if (this.get("CanAssignAccountManager")) {
filters.add("FilterByManager", this.Terrasoft.createColumnFilterWithParameter(
this.Terrasoft.ComparisonType.EQUAL,
"MQManager.Id",
Terrasoft.SysValue.CURRENT_USER_CONTACT.value
));
}
return filters;
}
Kind regards,
Julien