Last active
May 11, 2020 10:39
-
-
Save ebicoglu/e14de3f18a18242e38e17eccf41c0c6d to your computer and use it in GitHub Desktop.
How to show entity change history on a new entity in ABP MVC?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public override void ConfigureServices(ServiceConfigurationContext context) | |
{ | |
//... | |
Configure<AbpAuditingOptions>(options => | |
{ | |
options.EntityHistorySelectors.AddAllEntities(); | |
}); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rowAction: { | |
items: | |
[ | |
//.... | |
{ | |
text: abp.localization.localize("ChangeHistory", "AbpAuditLogging"), | |
action: function (data) { | |
abp.auditLogging.openEntityHistoryModal( | |
'Acme.BookStore.Books.Book', //full namespace of your entity | |
data.record.id | |
); | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Changes
Final Look