I Have an exisiting filter
var filter =
this.Terrasoft.createColumnFilterWithParameter(Terrasoft.ComparisonType.EQUAL,
"Name", "Motherboards");
Name = Motherboards
Now I want to create multiple filter like:
Name = Motherboards or Name = Graphics Card or Name = Mouse
How can i do this one?
Like
Hello,
You need to create a filter group and set OR logical operator.
Please, see my example:
var filterGroup = this.Terrasoft.createFilterGroup();
filterGroup.logicalOperation = this.Terrasoft.LogicalOperatorType.OR;
filterGroup.add("MotherboardsFilter", this.Terrasoft.createColumnFilterWithParameter(
this.Terrasoft.ComparisonType.EQUAL,
"Name", "Motherboards");
filterGroup.add("GraphicsFilter", this.Terrasoft.createColumnFilterWithParameter(
this.Terrasoft.ComparisonType.EQUAL,
"Name", "Graphics");
filterGroup.add("MouseFilter", this.Terrasoft.createColumnFilterWithParameter(
this.Terrasoft.ComparisonType.EQUAL,
"Name", "Mouse");
You can find more examples in the documentation - https://academy.bpmonline.com/documents/technic-sdk/7-12/entityschemaqu…