Quantcast
Channel: eXpandFramework RSS
Viewing all articles
Browse latest Browse all 861

AuditTrail - How to show the change history for the current object in a separate form instead of a nested ListView

$
0
0
I wanted to draw your attention to the scenario and solution in our Support Center, which were found helpful by at least 4 other XAF customers using XPO for data access. As you know, by default, we offer our users a solution based on the nested ListView, which is automatically generated when you declare a collection property like this one:

    public XPCollection<AuditDataItemPersistent> AuditTrail {
get {
if(auditTrail == null) {
auditTrail = AuditedObjectWeakReference.GetAuditTrail(Session, this);
}
return auditTrail;
}
}


The solution I am promoting allows you to keep the layout less complex and invoke this rarely used or quite advanced feature from a small PopupWindowShowAction showing a ListView:


It will be interesting to hear about your preferences in this regard. Please let me know in comments. Thanks!



Viewing all articles
Browse latest Browse all 861

Trending Articles