What problem does it solve?
This Skill solves common pain points of implementing XPO-specific filtering in XAF applications, including incorrect criteria syntax, security bypass risks, performance issues with large datasets, and unsupported LINQ expressions that cause runtime errors.
Core Features & Use Cases
- XPO Collection & Criteria Filtering: Filter XPCollection<T> with programmatic CriteriaOperator, add sorting, limit results with TopReturnedObjects, and define association collections in business classes.
- Type-Safe LINQ Queries: Use XPQuery<T> for compile-time safe filtering, aggregations, and projections over XPO data, with fallbacks to CriteriaOperator for unsupported LINQ operators.
- Server-Mode & Session Methods: Configure high-performance server-mode data sources (XPServerCollectionSource, XPInstantFeedbackSource) for large datasets, and use Session.FindObject/Session.GetObjects for direct XPO queries.
- Use Case: For example, when building an XAF admin panel that displays filtered order data, this skill ensures filtering follows XPO best practices to respect XAF security rules and avoid performance bottlenecks.
Quick Start
Use this skill to implement secure filtering for an XAF XPO-based order list view that only shows active orders from the last 30 days, using XPQuery<T> for type-safe querying.