0
    
    
        
                    maggieryanmail@gmail.com created
                    
                    
                    
                
                - UI type: Blazor
 - DB provider: EF Core
 - Tiered (MVC) or Identity Server Separated (Angular): no
 
How do I open the entity history change modal from my index page in blazor?
I tried:
@inject EntityChangeHistoryModal EntityHistoryModal;
await EntityHistoryModal.OpenAsync(EntityFullName, entityId.ToString());
I get a Null reference exception.
4 Answer(s)
- 
    0
Hi,
Can you share the full error logs? thanks.
 - 
    0
Hi,
You can try this:
.razor file
<EntityChangeHistoryModal @ref="EntityChangeHistoryModal"/>.razor.cs file
protected EntityChangeHistoryModal EntityChangeHistoryModal; public async Task OpenEntityChangeHistoryModal(Guid id) { await EntityChangeHistoryModal.OpenAsync(EntityTypeFullName, id.ToString()) } - 
    0
That worked - thank you!
Is there any way to modify the contents of the modal?
 - 
    0
Hi,
You have to replace the component: https://docs.abp.io/en/abp/latest/UI/Blazor/Customization-Overriding-Components?UI=Blazor