Here is this month’s edition of XAF Tips & Tricks. As always, we hope the information contained within this post is of value as you explore and leverage the capabilities of the eXpressApp Framework. If you have a support ticket you'd like to share with the XAF developer community, feel free to post a link in the comment section below.
Thank you for your continued commitment to XAF!
Interesting Support Tickets
- Blazor - Note that the Security System is initialized differently in v20.2 (T923425)
- Core - Note that you may face performance issues when the XAF log file verbosity is 4 (T444232)
- File Attachments - Read files from the FileData table in non-XAF applications (T921779)
- Security - Filter objects against the current user company or department (T348518)
- WinForms - Note that when you change a property value in its setter, the UI does not reflect this change (T741563)
- WinForms - Show a custom form when clicking a navigation item (T931649)
- WinForms - Show a confirmation dialog before switching an active MDI tab (T926339)
- Web - Close two popup windows simultaneously (T758858)
- Web - Update a nested List View when new items are added in code (T515205)
- Web - Update editable properties of the master object after changing its nested collection (T578619)
- Web - Show a loading panel when exporting a List View (T925195)
- Web - Prohibit showing a particular View when a user enters its URL manually (T894868)
- XPO - Best practices: Use XPO in non-XAF Blazor Server Side and WebAssembly applications (T907130)
New and Updated KB Articles
- Blazor - External Authentication – Windows Active Directory and OAuth providers (Google, GitHub, Azure AD)
- Core - How to register a custom XAF list editor
- Core - How to show a property selector that displays all members of a given business class
- Core - How to implement the CreatedBy, CreatedOn and UpdatedBy, UpdatedOn properties in a business class (added a solution for non-XAF applications)
- Core - Fixing an N+1 performance problem in XAF/XPO with totally undocumented APIs (by Manuel Grundner, a DevExpress)
- XPO - Recommended Xamarin Linker Options
Resolved Issues
- Core - NullReferenceException is thrown when opening the WinForms Application Designer and the Audit Trail Module is used
- Core - Cannot open the .NET Core Model Editor for a standalone .NET Standard Module when the Module has references to .NET Framework assemblies
- Security - The CurrentUserId operator doesn't work in non-XAF applications
- WinForms - A focused editor's value is not posted or reset after clicking Save when UseOldTemplates is True
Documentation Updates
Blazor UI
In the following, we describe how you can create new Property Editors and customize existing Property Editors within XAF’s Blazor UI:
- How to: Customize a Built-in Property Editor (Blazor)
- How to: Implement a Property Editor Based on a Custom Component (Blazor)
Feature Toggles
In the following, we describe how you can use the new FrameworkSettings.DefaultSettingsCompatibilityMode property (and detailed the features it manages):
Audit Trail
The following help topics describe recent Audit Trail Module enhancements:
Web API service for XPO
In the following, we detail how you can implement a Web API controller and connect an XPO client to it: Transfer Data via REST API