Hi
I have a problem with FindMatches.
I get a runtime exception with the text "Object must be of type Int32", when running the line
_group1Indexes = _group2colorList.FindMatches(group1filter)
Here is the relevant code:
private List<int> _group1Indexes = new List<int>();
PredicateExpression group1filter = new PredicateExpression();
ListInterval l1 = new ListInterval();
l1.Add(_groupfilter.Group1Interval, new Char[] { ',' });
for (int i = 0; i < l1.Count; i++)
{
group1filter.AddWithOr(new FieldBetweenPredicate(PakkelisteHistorikFields.Varenr, null,
1[i].Start, l1[i].End));
}
RelationPredicateBucket group2relationfilter = new RelationPredicateBucket();
group2relationfilter.PredicateExpression.Add(group2filter);
adapter.FetchEntityCollection(_group2colorList, group2relationfilter);
_group1Indexes = _group2colorList.FindMatches(group1filter);
group2filter is also a filter on varenr and some other details, which are don't know is relevant at the moment.
So what is wrong?