Hi Community,
I am trying to add a fixed filter like "Owner" in Activities to a custom section. Below is the code I added for the same:
initFixedFiltersConfig: function() {
var fixedFilterConfig = {
entitySchema: this.entitySchema,
filters: [
{
name: "Owner",
caption: this.get("Resources.Strings.OwnerFilterCaption"),
addOwnerCaption: this.get("Resources.Strings.AddEmployeeFilterCaption"),
hint: this.get("Resources.Strings.SelectEmployeeFilterHint"),
columnName: "customSectionColumn",
dataValueType: this.Terrasoft.DataValueType.LOOKUP,
filter: BaseFiltersGenerateModule.OwnerFilter
}
]
};
this.set("FixedFilterConfig", fixedFilterConfig);
}
I can see the filter getting added to the section. But the labels are not getting displayed. Below picture shows the default labels getting displayed.
I have added the captions OwnerFilterCaption("Employee"), AddEmployeeFilterCaption("Add Employee"), and SelectEmployeeFilterHint("Select Employee") to Localizable Strings for the section but when debugging the values are returned as undefined for this.get("Resources.Strings.OwnerFilterCaption").
Could anyone tell me what I am doing wrong and how to resolve the issue?