Skip to content

Instantly share code, notes, and snippets.

@ebicoglu
Last active May 11, 2020 10:39
Show Gist options
  • Save ebicoglu/e14de3f18a18242e38e17eccf41c0c6d to your computer and use it in GitHub Desktop.
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?
public override void ConfigureServices(ServiceConfigurationContext context)
{
//...
Configure<AbpAuditingOptions>(options =>
{
options.EntityHistorySelectors.AddAllEntities();
});
}
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
);
}
}
]
}
@ebicoglu
Copy link
Author

ebicoglu commented May 11, 2020

Changes

image

Final Look

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment