Skip to content

DevExpress-Examples/XAF_how-to-search-for-objects-by-using-all-the-properties-or-by-using-more-complex-criteria-e1744

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Files to look at:

How to search for XAF objects using a complex criterion

To accomplish this task, take the following steps:

  1. Create a non-persistent class with properties that we will use to find persistent objects: MySearchClass.cs
  2. In this class add a collection of persistent objects as described at How to: Show Persistent Objects in a Non-Persistent Object's View. This collection will show the search results.
  3. In this class' non-persistent detail view, add a custom 'Search' action as described at How to: Include an Action to a Detail View Layout
  4. When a user presses this 'Search' action, create a criterion based on the properties from point 1 and get persistent objects that fit this criterion as described at the 'Get a collection' section of Create, Read, Update and Delete Data: MySearchController.cs
  5. To show this non-persistent class view, use the solution from Ways to Show a View: MyShowSearchController.cs

image

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

.NET, Frameworks (XAF & XPO), eXpressApp Framework

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •