XAF: Easy custom members (What’s New in 13.2)

With our next major release (13.2), we have simplified the manner in which you are able to add custom and computed fields to existing business models. The functionality is available to both developers and end-users.

Once beta 1 is released, you can explore this new custom member functionality by exploring the FeatureCenter solution located in the C:\Users\Public\Documents\DXperience 13.2 Demos\eXpressApp Framework\FeatureCenter\CS folder.

Design time

As you know, XAF already offered the ability to create non-calculated persistent fields at design time using the Model Editor. In 13.2, we’ve extended the Application Model with an Expression attribute as illustrated in the image below.


When the Expression attribute has a value, XAF will create a calculated member or it will default to the creation of a persistent member. Additionally, you can create a complex expression such as the Sum of another custom field as illustrated below.


By design, XAF will not display these custom fields in any view since they were created manually after the Application Model was generated.


The great thing is that in 13.2, end-users can use the runtime version of the Model Editor to create custom members and extend the business domain as discussed in the previous section.

The image below illustrates where to locate the custom member in the Windows version of our FeatureCenter (same location for the web).


To invoke the runtime Model Editor, end-users can execute the Edit Model action.


You may also want to restrict Application Model modification to certain user groups. You can do that as illustrated below.


Developers can restrict end-users from creating custom members at runtime by setting the static ModelMemberRequiredCalculator.AllowPersistentCustomProperties to false.

The Web Runtime

To create a custom member for the web, you can use the Standalone Model Editor and edit the Model.xafml file located in the root of the web-site.


Custom members are in their first release (CTP) so we look forward to your feedback as we get it ready for the official release. Let me know what you think.

Related video: Calculated Fields Added at Runtime

8 comment(s)
Ayan Qayyum

excellent edition by devexpress

16 November, 2013
Noufal Aboobacker 1

When can we expect a Beta 1?????

16 November, 2013
Steven Rasmussen

Any chance this will work with DC?  Please tell me yes :)

16 November, 2013
Konstantin B (DevExpress)

Yes, it works with DC.

17 November, 2013
Apostolis Bekiaris (DevExpress)

@Noufal I do not have exact dates but it won;t be long

18 November, 2013
Stepan Lauryn

It looks very good and usable in our projects :-). I look forward to it to try it.

18 November, 2013
Paolo Liverani

Nice feature but I was hoping to see many more improvements, first of all in the startup time.

26 November, 2013
Dennis (DevExpress Support)

@Paolo: We also worked on this and could reduce the startup time to ~5% in this release. See also the list of other smaller improvements at www.devexpress.com/.../13.2.5.xml

6 December, 2013

Please login or register to post comments.