daelmo wrote:
Try this:
filter.Add(DebtorBalanceFields.Overduu3Months.SetExpression(
DebtorBalanceFields.Overdue3Months + DebtorBalanceFields.Overdue4Months)
>= 10000));
Hi Daelmo. I coudn't make that work, but in the end I added a calculated field to the fields collection:
fields.DefineField(new EntityField("Calculated", (DebtorBalanceFields.Overdue3Months + DebtorBalanceFields.Overdue4Months)), 11);
... and added a predicate to test it ...
filter.Add(new FieldCompareValuePredicate(fields[11], ComparisonOperator.GreaterEqual, 10000));
That works fine, with the obvious side effect of an extra field in the result set, but I can work around that.
Thanks again.