expressappframework-113054-support-qa-troubleshooting-how-to-instructions.md
Below is a list of topics answering the most frequently asked questions about XAF.
How to: Implement Cascading Filtering for Lookup List ViewsIllustrates how to set up Lookup Property Editor filtering in the Application Model and programmatically, and describes multiple scenarios.How to: Get the Current User in CodeSpecifies how to work with the static SecuritySystem class’s properties to access the user name, user ID or the entire user object. It also describes granting access only to objects the current user owns.How to: Use Custom Logon Parameters and AuthenticationDescribes 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 CollectionExplains 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 CoreDescribes 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 ViewExplains 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 TablesDescribes 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 LayoutUses 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 DialogPopulates and displays a list of objects that are not bound to the database (Non-Persistent Objects).How to: Change an Application Logo and InfoIllustrates 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 ClassMerges 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. Contains information on hiding secure data for EF Core applications.How to: Print a Report Without Displaying a PreviewExplains 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 propertyHow to: Display a Non-Persistent Object’s Detail View from the NavigationSpecifies 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 NavigationDisplays a non-persistent objects‘ List View in the Navigation.How to: Show a Custom Data-Bound Control in an XAF View (WinForms)Adds 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 AttributeIllustrates 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 TemplateExplains 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 CodeDeactivates 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 RuleOffers 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)Explains how to implement a Property Editor in WinForms applications.How to: Map a Persistent Class to a Database View Which Has No Key FieldIllustrates 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 ViewDescribes how to access a master object. This may be necessary when you have a Controller for a nested List View displaying an object collection.How to: Create a Business Model in the XPO Data Model DesignerGives 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 ActionInitializes a property of an object created using the New Action.How to: Customize Action ControlsDescribes 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.