Files to look at:
- WebUserViewVariantsController.cs (VB: WebUserViewVariantsController.vb)
- [E2813.ets](./CS/UserViewVariants/Functional Tests/E2813.ets) (VB: [E2813.ets](./VB/UserViewVariants/Functional Tests/E2813.ets))
- Model.DesignedDiffs.xafml (VB: Model.DesignedDiffs.xafml)
- UserViewVariantsController.cs (VB: UserViewVariantsController.vb)
- ViewVariantParameterObject.cs (VB: ViewVariantParameterObject.vb)
This example provides reusable UserViewVariants modules that allow your end-users to add View Variants dynamically. Refer to the Best practices of creating reusable XAF modules by example of a View Variants module extension blog post for more information. See functional tests for the implemented functionality in the UserViewVariants\Functional Tests\E2813.ets file.
IMPORTANT NOTES
Due to the application model generation specifics on the Web it makes sense to use this solution on the Web only if you store your end-user model differences in the database: How to store users' model differences separately for each user in the database.
See also:
How to save and share custom view settings