I am working in Ektron 9.0.
I have two different custom property associated with a taxonomy in Ektron.
Say, Taxonomy called "P",this has got two custom properties,
*P1 *P2
Each of these custom property has its own value.
(For eg: *P1 - V1 *P2 -V2)
Now i am trying to pull all taxonomies in Ektron,based on the names and values of these custom properties.
i.e, get all taxonomies in Ektron which has got custom property name as P1 and corresponding value as V1 AND another custom property name as P2 and corresponding value as V2.
Code :
CriteriaFilterGroup<TaxonomyCustomProperty> criteriaFilterGrp1= new CriteriaFilterGroup<TaxonomyCustomProperty>();
criteriaFilterGrp1.AddFilter(TaxonomyCustomProperty.Name,
CriteriaFilterOperator.EqualTo,"P1");
criteriaFilterGrp1.AddFilter(TaxonomyCustomProperty.Value,
CriteriaFilterOperator.EqualTo, "V1");
criteriaFilterGrp1.Condition = LogicalOperation.And;
custCtriteria.FilterGroups.Add(criteriaFilterGrp1);
CriteriaFilterGroup<TaxonomyCustomProperty> criteriaFilterGrp2= new CriteriaFilterGroup<TaxonomyCustomProperty>();
criteriaFilterGrp2.AddFilter(TaxonomyCustomProperty.Name,
CriteriaFilterOperator.EqualTo, "P2";
criteriaFilterGrp2.AddFilter(TaxonomyCustomProperty.Value,
CriteriaFilterOperator.EqualTo, "V2");
custCtriteria.FilterGroups.Add(criteriaFilterGrp2);
Here,When I Add the Filter criteria by the two taxonomy names and their corresponding value as as follows, I am not getting any results,as it is looking for a taxonomy custom property that satisfies the all four conditions that I have given.
How can i resolve this?