Hi All,
I'm getting a compile error I don't understand trying to create a predicate filter for a TypedList.
The codeline is this:
IPredicateExpression permFilter = new PredicateExpression(PredicateFactory.CompareValue(PermissionTypedListFieldIndex.PersonId, ComparisonOperator.Equal, User.PersonId));
and the error is this:
cannot convert from '<snip>.PermissionTypedListFieldIndex' to '<snip>.ActivityFieldIndex'
It obviously doesn't like PermissionTypedListFieldIndex as one of the Comparison fields, but I don't know why. It seems to want an EntityFieldIndex rather than a TypedListFieldIndex. Can I not use a Predicate with Typed Lists or am I going about filtering a TypedList the wrong way?
Thanks in advance
Alan