Frequently Asked Questions (FAQ)
- 6 minutes to read
Below is a list of topics answering the most frequently asked questions about XAF.
How to: Implement Cascading Filtering for Lookup List Views
Illustrates how to set up Lookup Property Editor filtering in the Application Model and programmatically, and describes several scenarios.
How to: Get the Current User in Code
Specifies how to work with the static SecuritySystem class’s properties to access the user name, user ID or the entire user object. It also shows how to grant access only to objects the current user owns.
How to: Use Custom Logon Parameters and Authentication
Describes how to replace the “User Name” editor displayed in the logon dialog with two Lookup Property Editors: the first one for choosing a company, the second one for choosing an employee from this company.
How to: Calculate a Property Value Based on Values from a Detail Collection
Explains how to implement a business class, so that one of its properties is calculated based on a property(s) of the objects contained in the child object collection.
How to: Initialize Business Objects with Default Property Values in XPO and How to: Initialize Business Objects with Default Property Values in Entity Framework Core
Describes how to initialize different types of properties with default property values.
How to: Implement Custom Security Objects (Users, Roles, Operation Permissions)
Illustrates how to create custom security objects, such as permissions, roles, and users, as well as implement an export functionality using a custom CanExport property.
How to: Access Objects Selected in the Current View
Explains how to manipulate focused and selected objects by accessing them from Controllers and Actions and modifying their properties - provides sample code snippets.
How to: Generate XPO Business Classes for Existing Data Tables
Describes how to set up your XAF application to work with existing databases by generating a business model declaration for the specified legacy database and mapping existing tables to persistent objects.
How to: Include an Action to a Detail View Layout
Shows how to use an Action Container View Item to make an Action available in a View (Detail View or Dashboard View) and not a toolbar.
How to: Display a List of Non-Persistent Objects in a Popup Dialog
Demonstrates how to populate and display a list of objects that are not bound to the database (Non-Persistent Objects).
How to: Change an Application Logo and Info
Illustrates how to change the default logo image and text displayed in the application’s About section.
How to: Implement a Custom Security System User Based on an Existing Business Class
Demonstrates how to merge a business class with the Security System’s User object so that the Security System would recognize the business class’s objects as possible User types.
How to: Change the Client-Side Security Mode from UI Level to Integrated in XPO applications
Clarifies how to filter secured data using XPO, without using a Middle Tier application server. Provides information on hiding secure data for EF Core applications.
How to: Customize an ASP.NET Web Forms Template
Suggests ways to customize ASP.NET Web Forms templates that are embedded in DevExpress.ExpressApp.Web. Usually, they cannot be modified, but you can include template content source files in your application project, change this content and use it instead.
How to: Print a Report Without Displaying a Preview
Explains how to implement an Action in WinForms and ASP.NET Web Forms applications that prints a report without displaying its preview.
How to: Specify a Display Member (for a Lookup Editor, Detail Form Caption, etc.)
Describes how to configure a business object to display a specific property’s value in Lookup Editors, Detail Form captions, etc., by default. Specify a business object’s property
How to: Display a Non-Persistent Object’s Detail View from the Navigation
Specifies how to display a non-persistent objects‘ Detail View in the Navigation or as a Dashboard item.
How to: Display a Non-Persistent Object’s List View from the Navigation
Demonstrates how to display a non-persistent objects‘ List View in the Navigation.
How to: Show a Custom Data-Bound Control in an XAF View (WinForms) and How to: Show a Custom Data-Bound Control in an XAF View (ASP.NET Web Forms)
Shows how to add a custom data-bound (data-aware) control to a View and display this View in a WinForms or ASP.NET Web Forms XAF application’s navigation.
How to: Create an Action Using the Action Attribute
Illustrates how to create an Action within a persistent class declaration (that is, how to convert a persistent class method into a SimpleAction or PopupWindowShowAction).
How to: Create a Custom WinForms Ribbon Template
Explains how to modify the default Ribbon template (XAF provides two default templates - Ribbon and Standard), create a ribbon page group and add an Action to it.
How to: Deactivate (Hide) an Action in Code
Demonstrates how to deactivate predefined or custom Actions and explains how the ActionBase.Active property controls the Action’s visibility.
How to: Disable and Hide Property Editors Based on a Business Rule
Provides step-by-step instructions on using the Conditional Appearance Module to disable/enable and show/hide Property Editors based on business rules.
How to: Implement a Property Editor Based on a Custom Control (WinForms) and How to: Implement a Property Editor Based on Custom Controls (ASP.NET Web Forms)
Explains how to implement a Property Editor in WinForms and ASP.NET Web Forms applications.
How to: Map a Persistent Class to a Database View Which Has No Key Field
Illustrates how to access stored queries in a database, which has no key field, by implementing a persistent class mapped to that database view.
How to: Access the Master Object from a Nested List View
Describes how to access a master object. This may be necessary when you have a Controller for a nested List View representing an object collection.
How to: Use Custom Themes in ASP.NET Web Forms Applications
Shows how to customize default XAF themes for ASP.NET Web Forms applications.
How to: Create a Business Model in the XPO Data Model Designer
Gives step-by-step instructions on using the XPO Data Model Designer in XAF applications. The topic covers creating a simple business model of two objects linked with a one-to-many relationship and adding XAF-specific attributes in code.
How to: Initialize an Object Created Using the New Action
Shows how to initialize a property of an object created using the New Action.
How to: Customize Action Controls
Describes how to customize the control that visualizes an Action in a UI. The topic covers creating a custom Action and modifying it to accept keyboard input using a custom mask.