Open Closed

Entity History & Change Details Modal #152


User avatar
0
ididsbury created

Hi,

Is it possible to reutilise the new Entity History / Change Details modal for showing change to custom (none Abp entities)? If so, can you please describe how I can call / show the modal in a MVC application.

Note that I have enabled entity history for all entities using the below:

            Configure<AbpAuditingOptions>(options =>
            {
                options.EntityHistorySelectors.AddAllEntities();
            });
            

Entity history is correctly being logged for Abp and custom entities. I would like to utilise the same modal for showing history for custom entities.

Thanks

Ian


4 Answer(s)
  • User Avatar
    0
    alper created
    Support Team Director

    do you want to open change details modal for your new entity?

    did you check the docs if it helps https://docs.abp.io/en/commercial/latest/modules/audit-logging

  • User Avatar
    0
    ididsbury created

    Hi,

    Yes. I'd like to open the change details modal for a new entity. The docs don't describe how to do this. Note that I can open the modal via the audit logging page for my new entity however I'd like to add a command on my custom page to open up the modal.

    Opening the modal from an actions menu (on the Tenant Entity) is shown on in the recent ABP 2.7 blog post. I'd like to do something similar for my new Entity.

    Note that I'm using MVC.

    Any help appreciated.

    Thanks

    Ian

  • User Avatar
    0
    alper created
    Support Team Director

    How to show entity change history on a new entity in ABP MVC? https://gist.github.com/ebicoglu/e14de3f18a18242e38e17eccf41c0c6d

  • User Avatar
    0
    ididsbury created

    Perfect. Thanks very much.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 01, 2024, 05:35