Question

filterGroup with several paramValues

I need this filter to work for several IDs, I understand that I should use something like this "esqContact.filters.logicalOperation = Terrasoft.LogicalOperatorType.OR;"; could you give me some help? 

 

"Department": {
    "dataValueType": Terrasoft.DataValueType.LOOKUP,
     "lookupListConfig": {
"filters": [
function() {
var filterGroup = Ext.create("Terrasoft.FilterGroup");
 
var tipoContactoId = Terrasoft.GUID_EMPTY; 
if (!Ext.isEmpty(this.get("Type"))) {
tipoContactoId = this.get("Type").value;
}
 
if (tipoContactoId === "40733cfc-f35b-1410-a884-16d83cab0980") {
filterGroup.add("FiltroDepartamentoEmpleado",
    Terrasoft.createColumnFilterWithParameter(
        Terrasoft.ComparisonType.EQUAL,
        "Id",
        "21476c4b6-7fe6-df11-971b-001d67e235c6"
    )
);
}
 
return filterGroup;
}
]
}
}

 

Like 0

Like

1 comments

Hello,

I used filterGroup.logicalOperation = Terrasoft.LogicalOperatorType.OR; 

seemed to do the trick

Show all comments