In my persistent class I define non-persistent collection like this:
C#[NonCloneable]
public XPCollection<TechnologyServicingEvent> TechnologyServicingEvents
{
get
{
XPCollection<TechnologyServicingEvent> result = new XPCollection<TechnologyServicingEvent>(Session);
result.Criteria = CriteriaOperator.Parse(string.Concat("[TechnologyServicingReports][[Technology.Id] = {", Id.ToString(), "}]"));
return result;
}
}
However, once this persistent class is used in ListView with ServerMode enabled, and user add this property in filter expression, it results in exception:
Cannot query a data store using the "[TechnologyServicingEvents][] And [TechnologyModel.TechnologyType.TechnologyClass!] = ##XpoObject#ELVAC.TechIS.Model.TechnologyManagement.TechnologyClass({b9dbf961-ced1-4f25-becf-fca55426b7c1})#" criterion because it uses the 'TechnologyServicingEvents' nonpersistent property
Is there any way how to hide non-persistent properties from FilterEditor in ServerMode and disable all the filtering features in such a case?